diff --git a/src/main/java/com/microsoft/graph/generated/admin/people/PeopleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/people/PeopleRequestBuilder.java index 58ae80f702e..1cfedd1b257 100644 --- a/src/main/java/com/microsoft/graph/generated/admin/people/PeopleRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/admin/people/PeopleRequestBuilder.java @@ -1,5 +1,6 @@ package com.microsoft.graph.admin.people; +import com.microsoft.graph.admin.people.iteminsights.ItemInsightsRequestBuilder; import com.microsoft.graph.admin.people.profilecardproperties.ProfileCardPropertiesRequestBuilder; import com.microsoft.graph.admin.people.pronouns.PronounsRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; @@ -22,6 +23,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class PeopleRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + * @return a {@link ItemInsightsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ItemInsightsRequestBuilder itemInsights() { + return new ItemInsightsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. * @return a {@link ProfileCardPropertiesRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/admin/people/iteminsights/ItemInsightsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/people/iteminsights/ItemInsightsRequestBuilder.java new file mode 100644 index 00000000000..9ae538a1263 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/admin/people/iteminsights/ItemInsightsRequestBuilder.java @@ -0,0 +1,232 @@ +package com.microsoft.graph.admin.people.iteminsights; + +import com.microsoft.graph.models.InsightsSettings; +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 manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ItemInsightsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ItemInsightsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ItemInsightsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ItemInsightsRequestBuilder} 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 ItemInsightsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property itemInsights for admin + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property itemInsights for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @return a {@link InsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public InsightsSettings get() { + return get(null); + } + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link InsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public InsightsSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, InsightsSettings::createFromDiscriminatorValue); + } + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param body The request body + * @return a {@link InsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public InsightsSettings patch(@jakarta.annotation.Nonnull final InsightsSettings body) { + return patch(body, null); + } + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link InsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public InsightsSettings patch(@jakarta.annotation.Nonnull final InsightsSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, InsightsSettings::createFromDiscriminatorValue); + } + /** + * Delete navigation property itemInsights for admin + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property itemInsights for admin + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @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 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; + } + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InsightsSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InsightsSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ItemInsightsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ItemInsightsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ItemInsightsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java index d0d2c32c687..1a5f1086c99 100644 --- a/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java @@ -81,7 +81,7 @@ public FederatedIdentityCredential get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, FederatedIdentityCredential::createFromDiscriminatorValue); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link FederatedIdentityCredential} * @throws ODataError When receiving a 4XX or 5XX status code @@ -92,7 +92,7 @@ public FederatedIdentityCredential patch(@jakarta.annotation.Nonnull final Feder return patch(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link FederatedIdentityCredential} @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java index a5a76a98a66..0461b92e4d5 100644 --- a/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java @@ -83,7 +83,7 @@ public FederatedIdentityCredential get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, FederatedIdentityCredential::createFromDiscriminatorValue); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link FederatedIdentityCredential} * @throws ODataError When receiving a 4XX or 5XX status code @@ -94,7 +94,7 @@ public FederatedIdentityCredential patch(@jakarta.annotation.Nonnull final Feder return patch(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link FederatedIdentityCredential} @@ -150,7 +150,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link RequestInformation} */ @@ -159,7 +159,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 060e982a707..cd25de130be 100644 --- a/src/main/java/com/microsoft/graph/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/chats/ChatsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/ChatsRequestBuilder.java index 446453266be..e0025aeb296 100644 --- a/src/main/java/com/microsoft/graph/generated/chats/ChatsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/chats/ChatsRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.chats.count.CountRequestBuilder; import com.microsoft.graph.chats.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.chats.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.chats.item.ChatItemRequestBuilder; import com.microsoft.graph.models.Chat; import com.microsoft.graph.models.ChatCollectionResponse; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the collection of chat entities. * @param chatId The unique identifier of chat diff --git a/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..04e7e26d3ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.chats.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..6af5b81733c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.chats.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java index 940ae814bfa..f820dc2e03e 100644 --- a/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java @@ -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 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. + * 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 Find more info here + * @see Find more info here */ @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 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. + * 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 Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * 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. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * 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. + * 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} diff --git a/src/main/java/com/microsoft/graph/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java index fcfa6855ada..a912261e051 100644 --- a/src/main/java/com/microsoft/graph/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 51d34294b0e..840a9d02194 100644 --- a/src/main/java/com/microsoft/graph/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java index c8129dbf898..8d5bcda2f5e 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java @@ -175,7 +175,7 @@ public DeviceAppManagementRequestBuilder(@jakarta.annotation.Nonnull final Strin * Read properties and relationships of the deviceAppManagement object. * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement get() { @@ -186,7 +186,7 @@ public DeviceAppManagement get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -200,7 +200,7 @@ public DeviceAppManagement get(@jakarta.annotation.Nullable final java.util.func * @param body The request body * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement patch(@jakarta.annotation.Nonnull final DeviceAppManagement body) { @@ -212,7 +212,7 @@ public DeviceAppManagement patch(@jakarta.annotation.Nonnull final DeviceAppMana * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceAppManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceAppManagement patch(@jakarta.annotation.Nonnull final DeviceAppManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java index 9108410b3e3..d73aa15e052 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java @@ -60,21 +60,21 @@ public ManagedAppPoliciesRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @return a {@link ManagedAppPolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicyCollectionResponse get() { return get(null); } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppPolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -109,7 +109,7 @@ public ManagedAppPolicy post(@jakarta.annotation.Nonnull final ManagedAppPolicy return this.requestAdapter.send(requestInfo, errorMapping, ManagedAppPolicy::createFromDiscriminatorValue); } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -117,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -163,7 +163,7 @@ public ManagedAppPoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnull fina return new ManagedAppPoliciesRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java index fe9ce73d4b5..1eff5341195 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java @@ -64,21 +64,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedAppConfiguration object. + * Read properties and relationships of the targetedManagedAppProtection object. * @return a {@link ManagedAppPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicy get() { return get(null); } /** - * Read properties and relationships of the managedAppConfiguration object. + * Read properties and relationships of the targetedManagedAppProtection object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppPolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -133,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedAppConfiguration object. + * Read properties and relationships of the targetedManagedAppProtection object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -141,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedAppConfiguration object. + * Read properties and relationships of the targetedManagedAppProtection object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -193,7 +193,7 @@ public ManagedAppPolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedAppConfiguration object. + * Read properties and relationships of the targetedManagedAppProtection object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/targetapps/TargetAppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/targetapps/TargetAppsRequestBuilder.java index 648674ff3e8..183e14e1b0f 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/targetapps/TargetAppsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/targetapps/TargetAppsRequestBuilder.java @@ -38,7 +38,7 @@ public TargetAppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, * Not yet documented * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body) { post(body, null); @@ -48,7 +48,7 @@ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody bod * @param body The request body * @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 Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/ManagedAppRegistrationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/ManagedAppRegistrationsRequestBuilder.java index 73ca8b4688a..74c6a44cf3f 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/ManagedAppRegistrationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/ManagedAppRegistrationsRequestBuilder.java @@ -69,21 +69,21 @@ public ManagedAppRegistrationsRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @return a {@link ManagedAppRegistrationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistrationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppRegistrationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistrationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -120,7 +120,7 @@ public ManagedAppRegistration post(@jakarta.annotation.Nonnull final ManagedAppR return this.requestAdapter.send(requestInfo, errorMapping, ManagedAppRegistration::createFromDiscriminatorValue); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -128,7 +128,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -174,7 +174,7 @@ public ManagedAppRegistrationsRequestBuilder withUrl(@jakarta.annotation.Nonnull return new ManagedAppRegistrationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/appliedpolicies/item/targetapps/TargetAppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/appliedpolicies/item/targetapps/TargetAppsRequestBuilder.java index 860d86b8311..0dbac3cfe45 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/appliedpolicies/item/targetapps/TargetAppsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/appliedpolicies/item/targetapps/TargetAppsRequestBuilder.java @@ -38,7 +38,7 @@ public TargetAppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, * Not yet documented * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body) { post(body, null); @@ -48,7 +48,7 @@ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody bod * @param body The request body * @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 Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/intendedpolicies/item/targetapps/TargetAppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/intendedpolicies/item/targetapps/TargetAppsRequestBuilder.java index 85fe66c7236..46236ecfbdf 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/intendedpolicies/item/targetapps/TargetAppsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/intendedpolicies/item/targetapps/TargetAppsRequestBuilder.java @@ -38,7 +38,7 @@ public TargetAppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, * Not yet documented * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body) { post(body, null); @@ -48,7 +48,7 @@ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody bod * @param body The request body * @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 Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final TargetAppsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappstatuses/item/ManagedAppStatusItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappstatuses/item/ManagedAppStatusItemRequestBuilder.java index dfe8eb0ac38..e0cfb0e8610 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappstatuses/item/ManagedAppStatusItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappstatuses/item/ManagedAppStatusItemRequestBuilder.java @@ -55,21 +55,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedAppStatus object. + * Read properties and relationships of the managedAppStatusRaw object. * @return a {@link ManagedAppStatus} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppStatus get() { return get(null); } /** - * Read properties and relationships of the managedAppStatus object. + * Read properties and relationships of the managedAppStatusRaw object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppStatus} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppStatus get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedAppStatus object. + * Read properties and relationships of the managedAppStatusRaw object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedAppStatus object. + * Read properties and relationships of the managedAppStatusRaw object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -184,7 +184,7 @@ public ManagedAppStatusItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedAppStatus object. + * Read properties and relationships of the managedAppStatusRaw object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java index 888b3b41d1b..1cd36d46e6a 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/item/ManagedEBookAssignmentItemRequestBuilder.java @@ -37,18 +37,18 @@ public ManagedEBookAssignmentItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment get() { return get(null); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookAssignment} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignment get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public ManagedEBookAssignment patch(@jakarta.annotation.Nonnull final ManagedEBo return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignment::createFromDiscriminatorValue); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a managedEBookAssignment. + * Deletes a iosVppEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -188,7 +188,7 @@ public ManagedEBookAssignmentItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java index b50c98da514..f6ed71ee550 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/MobileAppConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public MobileAppConfigurationsRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @return a {@link ManagedDeviceMobileAppConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedDeviceMobileAppConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public ManagedDeviceMobileAppConfiguration post(@jakarta.annotation.Nonnull fina return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceMobileAppConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public MobileAppConfigurationsRequestBuilder withUrl(@jakarta.annotation.Nonnull return new MobileAppConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.java index 2dffcd3051c..783c561d2a9 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileappconfigurations/item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.java @@ -111,21 +111,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @return a {@link ManagedDeviceMobileAppConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfiguration get() { return get(null); } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedDeviceMobileAppConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedDeviceMobileAppConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -182,7 +182,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -190,7 +190,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -242,7 +242,7 @@ public ManagedDeviceMobileAppConfigurationItemRequestBuilder withUrl(@jakarta.an public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java index 07172c0a6ef..63bf2922ef1 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/MobileAppsRequestBuilder.java @@ -204,21 +204,21 @@ public MobileAppsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSOfficeSuiteApp objects. * @return a {@link MobileAppCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileAppCollectionResponse get() { return get(null); } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSOfficeSuiteApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileAppCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileAppCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -228,23 +228,23 @@ public MobileAppCollectionResponse get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, MobileAppCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new windowsAppX object. + * Create a new webApp object. * @param body The request body * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body) { return post(body, null); } /** - * Create a new windowsAppX object. + * Create a new webApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -255,7 +255,7 @@ public MobileApp post(@jakarta.annotation.Nonnull final MobileApp body, @jakarta return this.requestAdapter.send(requestInfo, errorMapping, MobileApp::createFromDiscriminatorValue); } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSOfficeSuiteApp objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -263,7 +263,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSOfficeSuiteApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -275,7 +275,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new windowsAppX object. + * Create a new webApp object. * @param body The request body * @return a {@link RequestInformation} */ @@ -284,7 +284,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new windowsAppX object. + * Create a new webApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -309,7 +309,7 @@ public MobileAppsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new MobileAppsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSOfficeSuiteApp objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java index 90c0f17d90b..a59c399feec 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/mobileapps/item/MobileAppItemRequestBuilder.java @@ -228,21 +228,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the macOSLobApp object. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp get() { return get(null); } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the macOSLobApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -252,23 +252,23 @@ public MobileApp get(@jakarta.annotation.Nullable final java.util.function.Consu return this.requestAdapter.send(requestInfo, errorMapping, MobileApp::createFromDiscriminatorValue); } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a microsoftStoreForBusinessApp object. * @param body The request body * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp patch(@jakarta.annotation.Nonnull final MobileApp body) { return patch(body, null); } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a microsoftStoreForBusinessApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MobileApp} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MobileApp patch(@jakarta.annotation.Nonnull final MobileApp body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -299,7 +299,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the macOSLobApp object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -307,7 +307,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the macOSLobApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -319,7 +319,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a microsoftStoreForBusinessApp object. * @param body The request body * @return a {@link RequestInformation} */ @@ -328,7 +328,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a microsoftStoreForBusinessApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -359,7 +359,7 @@ public MobileAppItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the macOSLobApp object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java index 8138d392ad5..f9b3f2e1011 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/DeviceManagementRequestBuilder.java @@ -573,7 +573,7 @@ public DeviceManagementRequestBuilder(@jakarta.annotation.Nonnull final String r * Read properties and relationships of the deviceManagement object. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement get() { @@ -584,7 +584,7 @@ public DeviceManagement get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -608,7 +608,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder getEffectivePermissionsWit * @param body The request body * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement body) { @@ -620,7 +620,7 @@ public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceManagement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceManagement patch(@jakarta.annotation.Nonnull final DeviceManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java index a83a69caf7c..cc1ad23ff10 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/DeviceCompliancePoliciesRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceCompliancePoliciesRequestBuilder(@jakarta.annotation.Nonnull final super(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the windows10CompliancePolicy objects. * @return a {@link DeviceCompliancePolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicyCollectionResponse get() { return get(null); } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the windows10CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public DeviceCompliancePolicyCollectionResponse get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicyCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body) { return post(body, null); } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceCompliancePolicy post(@jakarta.annotation.Nonnull final DeviceCompl return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the windows10CompliancePolicy objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the windows10CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public DeviceCompliancePoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnul return new DeviceCompliancePoliciesRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the windows10CompliancePolicy objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java index c9bd0de1e68..50c7f53bd08 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/devicecompliancepolicies/item/DeviceCompliancePolicyItemRequestBuilder.java @@ -118,18 +118,18 @@ public DeviceCompliancePolicyItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -138,21 +138,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy get() { return get(null); } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -162,23 +162,23 @@ public DeviceCompliancePolicy get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body) { return patch(body, null); } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceCompliancePolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceCompliancePolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -189,7 +189,7 @@ public DeviceCompliancePolicy patch(@jakarta.annotation.Nonnull final DeviceComp return this.requestAdapter.send(requestInfo, errorMapping, DeviceCompliancePolicy::createFromDiscriminatorValue); } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -197,7 +197,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -217,7 +217,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -229,7 +229,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @return a {@link RequestInformation} */ @@ -238,7 +238,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -269,7 +269,7 @@ public DeviceCompliancePolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10CompliancePolicy object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java index af2eed2c5a0..f95de5adf62 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/DeviceConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceConfigurationsRequestBuilder(@jakarta.annotation.Nonnull final Stri super(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCustomConfiguration objects. * @return a {@link DeviceConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public DeviceConfigurationCollectionResponse get(@jakarta.annotation.Nullable fi return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfigurationCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new windows81GeneralConfiguration object. + * Create a new androidWorkProfileCustomConfiguration object. * @param body The request body * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfiguration body) { return post(body, null); } /** - * Create a new windows81GeneralConfiguration object. + * Create a new androidWorkProfileCustomConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceConfiguration post(@jakarta.annotation.Nonnull final DeviceConfigur return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCustomConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new windows81GeneralConfiguration object. + * Create a new androidWorkProfileCustomConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new windows81GeneralConfiguration object. + * Create a new androidWorkProfileCustomConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public DeviceConfigurationsRequestBuilder withUrl(@jakarta.annotation.Nonnull fi return new DeviceConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCustomConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java index 5f01e515a3f..e44b649bcfe 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceconfigurations/item/DeviceConfigurationItemRequestBuilder.java @@ -101,18 +101,18 @@ public DeviceConfigurationItemRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a iosCustomConfiguration. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a iosCustomConfiguration. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -121,21 +121,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the windows10SecureAssessmentConfiguration object. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration get() { return get(null); } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the windows10SecureAssessmentConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -155,23 +155,23 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder getOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(pathParameters, requestAdapter, secretReferenceValueId); } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfiguration body) { return patch(body, null); } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -182,7 +182,7 @@ public DeviceConfiguration patch(@jakarta.annotation.Nonnull final DeviceConfigu return this.requestAdapter.send(requestInfo, errorMapping, DeviceConfiguration::createFromDiscriminatorValue); } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a iosCustomConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -190,7 +190,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a iosCustomConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -202,7 +202,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the windows10SecureAssessmentConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -210,7 +210,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the windows10SecureAssessmentConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -222,7 +222,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -231,7 +231,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -262,7 +262,7 @@ public DeviceConfigurationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the windows10SecureAssessmentConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java index fcdeca64bf1..8b5a8749812 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/DeviceEnrollmentConfigurationsRequestBuilder.java @@ -60,21 +60,21 @@ public DeviceEnrollmentConfigurationsRequestBuilder(@jakarta.annotation.Nonnull super(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @return a {@link DeviceEnrollmentConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfigurationCollectionResponse get() { return get(null); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceEnrollmentConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfigurationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public DeviceEnrollmentConfigurationCollectionResponse get(@jakarta.annotation.N return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfigurationCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration post(@jakarta.annotation.Nonnull final DeviceEnrollmentConfiguration body) { return post(body, null); } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration post(@jakarta.annotation.Nonnull final DeviceEnrollmentConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public DeviceEnrollmentConfiguration post(@jakarta.annotation.Nonnull final Devi return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfiguration::createFromDiscriminatorValue); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder withUrl(@jakarta.annotation. return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java index 8e1c98d963d..33fe9046ccc 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/deviceenrollmentconfigurations/item/DeviceEnrollmentConfigurationItemRequestBuilder.java @@ -64,18 +64,18 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(@jakarta.annotation.Nonnu super(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -108,23 +108,23 @@ public DeviceEnrollmentConfiguration get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfiguration::createFromDiscriminatorValue); } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param body The request body * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration patch(@jakarta.annotation.Nonnull final DeviceEnrollmentConfiguration body) { return patch(body, null); } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceEnrollmentConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public DeviceEnrollmentConfiguration patch(@jakarta.annotation.Nonnull final DeviceEnrollmentConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -135,7 +135,7 @@ public DeviceEnrollmentConfiguration patch(@jakarta.annotation.Nonnull final Dev return this.requestAdapter.send(requestInfo, errorMapping, DeviceEnrollmentConfiguration::createFromDiscriminatorValue); } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -143,7 +143,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param body The request body * @return a {@link RequestInformation} */ @@ -184,7 +184,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java index 8d4d1eeb90a..91d3a9ffe86 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/RoleDefinitionsRequestBuilder.java @@ -60,21 +60,21 @@ public RoleDefinitionsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @return a {@link RoleDefinitionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinitionCollectionResponse get() { return get(null); } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RoleDefinitionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public RoleDefinition post(@jakarta.annotation.Nonnull final RoleDefinition body return this.requestAdapter.send(requestInfo, errorMapping, RoleDefinition::createFromDiscriminatorValue); } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -165,7 +165,7 @@ public RoleDefinitionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final S return new RoleDefinitionsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/item/RoleDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/item/RoleDefinitionItemRequestBuilder.java index f7c9837f26c..dde06c8e769 100644 --- a/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/item/RoleDefinitionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devicemanagement/roledefinitions/item/RoleDefinitionItemRequestBuilder.java @@ -46,18 +46,18 @@ public RoleDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -90,23 +90,23 @@ public RoleDefinition get(@jakarta.annotation.Nullable final java.util.function. return this.requestAdapter.send(requestInfo, errorMapping, RoleDefinition::createFromDiscriminatorValue); } /** - * Update the properties of a deviceAndAppManagementRoleDefinition object. + * Update the properties of a roleDefinition object. * @param body The request body * @return a {@link RoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinition patch(@jakarta.annotation.Nonnull final RoleDefinition body) { return patch(body, null); } /** - * Update the properties of a deviceAndAppManagementRoleDefinition object. + * Update the properties of a roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RoleDefinition patch(@jakarta.annotation.Nonnull final RoleDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -117,7 +117,7 @@ public RoleDefinition patch(@jakarta.annotation.Nonnull final RoleDefinition bod return this.requestAdapter.send(requestInfo, errorMapping, RoleDefinition::createFromDiscriminatorValue); } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -125,7 +125,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a deviceAndAppManagementRoleDefinition object. + * Update the properties of a roleDefinition object. * @param body The request body * @return a {@link RequestInformation} */ @@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a deviceAndAppManagementRoleDefinition object. + * Update the properties of a roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 8e45427bd49..542ccdf968a 100644 --- a/src/main/java/com/microsoft/graph/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 9091b46283d..baaecd5d494 100644 --- a/src/main/java/com/microsoft/graph/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/directory/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directory/subscriptions/SubscriptionsRequestBuilder.java index ca0af6daa06..2ac4eb94869 100644 --- a/src/main/java/com/microsoft/graph/generated/directory/subscriptions/SubscriptionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directory/subscriptions/SubscriptionsRequestBuilder.java @@ -60,19 +60,21 @@ public SubscriptionsRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @return a {@link CompanySubscriptionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscriptionCollectionResponse get() { return get(null); } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CompanySubscriptionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscriptionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -107,7 +109,7 @@ public CompanySubscription post(@jakarta.annotation.Nonnull final CompanySubscri return this.requestAdapter.send(requestInfo, errorMapping, CompanySubscription::createFromDiscriminatorValue); } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +163,7 @@ public SubscriptionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str return new SubscriptionsRequestBuilder(rawUrl, requestAdapter); } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/directory/subscriptions/item/CompanySubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directory/subscriptions/item/CompanySubscriptionItemRequestBuilder.java index f12a04563bc..fec4930437f 100644 --- a/src/main/java/com/microsoft/graph/generated/directory/subscriptions/item/CompanySubscriptionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directory/subscriptions/item/CompanySubscriptionItemRequestBuilder.java @@ -55,19 +55,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @return a {@link CompanySubscription} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscription get() { return get(null); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CompanySubscription} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscription get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -122,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +184,7 @@ public CompanySubscriptionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/directory/subscriptionswithcommercesubscriptionid/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directory/subscriptionswithcommercesubscriptionid/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.java index 17c24056062..f937240228f 100644 --- a/src/main/java/com/microsoft/graph/generated/directory/subscriptionswithcommercesubscriptionid/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directory/subscriptionswithcommercesubscriptionid/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.java @@ -57,19 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @return a {@link CompanySubscription} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscription get() { return get(null); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CompanySubscription} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CompanySubscription get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -124,7 +126,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +134,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -184,7 +186,7 @@ public SubscriptionsWithCommerceSubscriptionIdRequestBuilder withUrl(@jakarta.an public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java index eeccfbb1e04..56c2840867d 100644 --- a/src/main/java/com/microsoft/graph/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java index a928036e0e7..c305101ce71 100644 --- a/src/main/java/com/microsoft/graph/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 5ce758a8646..1e890099aaf 100644 --- a/src/main/java/com/microsoft/graph/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java index 195bf3fca2a..e2d7e4eef05 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java @@ -79,23 +79,23 @@ public ItemRetentionLabel get(@jakarta.annotation.Nullable final java.util.funct return this.requestAdapter.send(requestInfo, errorMapping, ItemRetentionLabel::createFromDiscriminatorValue); } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param body The request body * @return a {@link ItemRetentionLabel} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ItemRetentionLabel patch(@jakarta.annotation.Nonnull final ItemRetentionLabel body) { return patch(body, null); } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemRetentionLabel} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ItemRetentionLabel patch(@jakarta.annotation.Nonnull final ItemRetentionLabel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -146,7 +146,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param body The request body * @return a {@link RequestInformation} */ @@ -155,7 +155,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java index 82a5578e60a..eac318daf14 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java @@ -60,7 +60,7 @@ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public WorkbookCommentReplyCollectionResponse get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookComme return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new RepliesRequestBuilder(rawUrl, requestAdapter); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java index 2da02c544f7..c28e612705f 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookCommentReply get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public WorkbookCommentReplyItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java index a95b0ba345c..ee60b086714 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java @@ -36,21 +36,21 @@ public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get() { return get(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -60,7 +60,7 @@ public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java index 26ae1c96560..2d065acb205 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java index 70f88129440..cf71d1985d1 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java @@ -70,7 +70,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java index 17e4cc4e24f..767a162f4e8 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -100,7 +100,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -109,7 +109,7 @@ public WorkbookTableColumn get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code @@ -167,7 +167,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -227,7 +227,7 @@ public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java index 719e0f94f01..74e196c5c2c 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java @@ -163,7 +163,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -172,7 +172,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -230,7 +230,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -238,7 +238,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -290,7 +290,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java index a0dad3b461b..5c544c656c7 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java index f86f2880713..5c0c48c7a4c 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java @@ -70,7 +70,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java index 53132d8e238..ede31a54ed9 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookTableRow get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java index 56a6b89d06d..adf19820f52 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java index c7de929a54a..c92d8e4f6d5 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -38,7 +38,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java index 31100f01bef..2006abae23f 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -38,7 +38,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java index e81a3ee8501..7e65c973733 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java index 4585d3641ff..3ae57c344fe 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java @@ -71,7 +71,7 @@ public ChartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -80,7 +80,7 @@ public WorkbookChartCollectionResponse get() { return get(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -138,7 +138,7 @@ public WorkbookChart post(@jakarta.annotation.Nonnull final WorkbookChart body, return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -146,7 +146,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -192,7 +192,7 @@ public ChartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new ChartsRequestBuilder(rawUrl, requestAdapter); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java index e2d83d8e44c..81ff5726cce 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java @@ -148,7 +148,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link WorkbookChart} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -157,7 +157,7 @@ public WorkbookChart get() { return get(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChart} * @throws ODataError When receiving a 4XX or 5XX status code @@ -251,7 +251,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -259,7 +259,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -311,7 +311,7 @@ public WorkbookChartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java index 35d61139f18..c5fd1195aea 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookChartSeriesFormat get() { return get(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java index f4f4e73e145..a08cd2e389a 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java @@ -61,7 +61,7 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -70,7 +70,7 @@ public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -118,7 +118,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -126,7 +126,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -172,7 +172,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java index eb82b45f284..7bfe8d32887 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPoint} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookChartPoint get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPoint} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookChartPointItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java index 18c3135db5f..cd7328c16b6 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookChartPointFormat get() { return get(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java index f448927dcd0..d9ffcc0d74b 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookChartPointFormat get() { return get(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java index fe99ca935ea..6ef6539c4f2 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookChartSeriesFormat get() { return get(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java index dc79e8ce883..e0c6aeba146 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java @@ -38,7 +38,7 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java index 4a364c8eb01..fa2703f6c29 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link WorkbookChartTitleFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookChartTitleFormat get() { return get(null); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartTitleFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java index 6b7f9e3725d..b4050bb9104 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java @@ -78,7 +78,7 @@ public NamesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -87,7 +87,7 @@ public WorkbookNamedItemCollectionResponse get() { return get(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -125,7 +125,7 @@ public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedIte return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -133,7 +133,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -179,7 +179,7 @@ public NamesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new NamesRequestBuilder(rawUrl, requestAdapter); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java index 124a6f4d05e..df0010e5ed9 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link WorkbookNamedItem} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookNamedItem get() { return get(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookNamedItem} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public WorkbookNamedItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull f public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java index a863911f6b1..fd85e506fb0 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java @@ -36,21 +36,21 @@ public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get() { return get(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookRange} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -60,7 +60,7 @@ public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java index a44e888be88..8288d2e8772 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java index 588a1cc4af8..1f7da31d0df 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java @@ -69,7 +69,7 @@ public PivotTablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link WorkbookPivotTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -78,7 +78,7 @@ public WorkbookPivotTableCollectionResponse get() { return get(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookPivotTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -116,7 +116,7 @@ public WorkbookPivotTable post(@jakarta.annotation.Nonnull final WorkbookPivotTa return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTable::createFromDiscriminatorValue); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -124,7 +124,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -170,7 +170,7 @@ public PivotTablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new PivotTablesRequestBuilder(rawUrl, requestAdapter); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java index a9762c02938..22fde4d251f 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link WorkbookPivotTable} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookPivotTable get() { return get(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookPivotTable} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public WorkbookPivotTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java index 129a5099dd8..c62546de617 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java index 7fc2df42d84..601bfd7d896 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @return a {@link WorkbookWorksheetProtection} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookWorksheetProtection get() { return get(null); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheetProtection} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public ProtectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java index 0f1f8019e5a..057b7b94508 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java @@ -70,7 +70,7 @@ public TablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link WorkbookTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableCollectionResponse get() { return get(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body, return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public TablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new TablesRequestBuilder(rawUrl, requestAdapter); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java index 4cc9cf7aec1..6af6f087523 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java @@ -154,7 +154,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -163,7 +163,7 @@ public WorkbookTable get() { return get(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code @@ -221,7 +221,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -229,7 +229,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -281,7 +281,7 @@ public WorkbookTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java index fac0c115fc1..959515e8328 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java @@ -70,7 +70,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java index 06b0f031063..8f521c08e3e 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -100,7 +100,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -109,7 +109,7 @@ public WorkbookTableColumn get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code @@ -167,7 +167,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -227,7 +227,7 @@ public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java index df3f87ad2a5..ef40a4800fd 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java @@ -163,7 +163,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -172,7 +172,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -230,7 +230,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -238,7 +238,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -290,7 +290,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java index 5f32d9d2e8a..0cc4e59a5c2 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java index 36c43e62495..f62f1fcbcf8 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java @@ -70,7 +70,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java index 47a6b818ad2..3f33183093c 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookTableRow get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java index b862ecb0c32..8b1ccacc2ad 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java index 051d7395815..384c6a95b6f 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -38,7 +38,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java index 63cc127027c..101aab2566f 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -38,7 +38,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java index 9538ecc281a..0158608bc06 100644 --- a/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java index 64e6692f411..770b7806b75 100644 --- a/src/main/java/com/microsoft/graph/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java @@ -81,7 +81,7 @@ public EducationRubric get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, EducationRubric::createFromDiscriminatorValue); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @return a {@link EducationRubric} * @throws ODataError When receiving a 4XX or 5XX status code @@ -92,7 +92,7 @@ public EducationRubric patch(@jakarta.annotation.Nonnull final EducationRubric b return patch(body, null); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationRubric} @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java index eaae73f655f..ba5560b8366 100644 --- a/src/main/java/com/microsoft/graph/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java @@ -99,23 +99,23 @@ public ExternalItem get(@jakarta.annotation.Nullable final java.util.function.Co return this.requestAdapter.send(requestInfo, errorMapping, ExternalItem::createFromDiscriminatorValue); } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param body The request body * @return a {@link ExternalItem} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ExternalItem put(@jakarta.annotation.Nonnull final ExternalItem body) { return put(body, null); } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ExternalItem} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ExternalItem put(@jakarta.annotation.Nonnull final ExternalItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -166,7 +166,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param body The request body * @return a {@link RequestInformation} */ @@ -175,7 +175,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, null); } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/GroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/GroupsRequestBuilder.java index d2cb22b135d..f26a6683d2a 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/GroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/GroupsRequestBuilder.java @@ -120,23 +120,23 @@ public GroupCollectionResponse get(@jakarta.annotation.Nullable final java.util. return this.requestAdapter.send(requestInfo, errorMapping, GroupCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Group post(@jakarta.annotation.Nonnull final Group body) { return post(body, null); } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Group post(@jakarta.annotation.Nonnull final Group body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -167,7 +167,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @return a {@link RequestInformation} */ @@ -176,7 +176,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java index bd069fee26c..d0bb2e45e3c 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java @@ -35,7 +35,7 @@ public AddFavoriteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/groups/{group%2Did}/addFavorite", rawUrl); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -43,7 +43,7 @@ public void post() { post(null); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @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 Find more info here @@ -55,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java index d480b8ad26f..4daa3199e9a 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/ConversationsRequestBuilder.java @@ -84,23 +84,23 @@ public ConversationCollectionResponse get(@jakarta.annotation.Nullable final jav return this.requestAdapter.send(requestInfo, errorMapping, ConversationCollectionResponse::createFromDiscriminatorValue); } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link Conversation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Conversation post(@jakarta.annotation.Nonnull final Conversation body) { return post(body, null); } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Conversation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Conversation post(@jakarta.annotation.Nonnull final Conversation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 1d44c6ec9c9..c5db1dcc57a 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java index 5c74a8eb5ad..653663e0b4b 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java @@ -10,7 +10,6 @@ import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getactivitiesbyinterval.GetActivitiesByIntervalRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getapplicablecontenttypesforlistwithlistid.GetApplicableContentTypesForListWithListIdRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.GetByPathWithPath1RequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.items.ItemsRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.lists.ListsRequestBuilder; @@ -248,16 +247,6 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder getApplicableCon Objects.requireNonNull(listId); return new GetApplicableContentTypesForListWithListIdRequestBuilder(pathParameters, requestAdapter, listId); } - /** - * Provides operations to call the getByPath method. - * @param path1 Usage: path='{path1}' - * @return a {@link GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder getByPathWithPath1(@jakarta.annotation.Nonnull final String path1) { - Objects.requireNonNull(path1); - return new GetByPathWithPath1RequestBuilder(pathParameters, requestAdapter, path1); - } /** * Invoke function getByPath * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java deleted file mode 100644 index d6948b6d17f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1; - -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.columns.ColumnsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drive.DriveRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drives.DrivesRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns.ExternalColumnsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.items.ItemsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lists.ListsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.onenote.OnenoteRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.operations.OperationsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages.PagesRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.sites.SitesRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstore.TermStoreRequestBuilder; -import com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstores.TermStoresRequestBuilder; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Site; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 getByPath method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder analytics() { - return new AnalyticsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder contentTypes() { - return new ContentTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder drive() { - return new DriveRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - * @return a {@link DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder drives() { - return new DrivesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - * @return a {@link ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder externalColumns() { - return new ExternalColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.site entity. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder items() { - return new ItemsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - * @return a {@link ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder lists() { - return new ListsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - * @return a {@link OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder onenote() { - return new OnenoteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder operations() { - return new OperationsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - * @return a {@link PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder pages() { - return new PagesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - * @return a {@link SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder sites() { - return new SitesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - * @return a {@link TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder termStore() { - return new TermStoreRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the termStores property of the microsoft.graph.site entity. - * @return a {@link TermStoresRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoresRequestBuilder termStores() { - return new TermStoresRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} and sets the default values. - * @param path1 Usage: path='{path1}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String path1) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters); - this.pathParameters.put("path1", path1); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} 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 GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", rawUrl); - } - /** - * Invoke function getByPath - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get() { - return get(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Site::createFromDiscriminatorValue); - } - /** - * Invoke function getByPath - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getByPath - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetByPathWithPath1RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index df3c830903a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.analytics; - -import com.microsoft.graph.models.ItemAnalytics; -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 manage the analytics property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} 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 AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property analytics for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property analytics for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return patch(body, null); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Delete navigation property analytics for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property analytics for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this site. - * @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 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; - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Analytics about the view activities that took place on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 44f3c9d5e6e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.columns; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -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 manage the columns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @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 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; - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions reusable across lists under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index 060172fc02c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes; - -import com.microsoft.graph.models.ContentType; -import com.microsoft.graph.models.ContentTypeCollectionResponse; -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 manage the contentTypes property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} 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 ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types defined for this site. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body) { - return post(body, null); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types defined for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types defined for this site. - * @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 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; - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types defined for this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 22f0ac4348b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java deleted file mode 100644 index c5c76806209..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drive; - -import com.microsoft.graph.models.Drive; -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 manage the drive property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveRequestBuilder} 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 DriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", rawUrl); - } - /** - * The default drive (document library) for this site. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get() { - return get(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * The default drive (document library) for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default drive (document library) for this site. - * @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 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 DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveRequestBuilder(rawUrl, requestAdapter); - } - /** - * The default drive (document library) for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java deleted file mode 100644 index 0af54658841..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drives; - -import com.microsoft.graph.models.DriveCollectionResponse; -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 manage the drives property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DrivesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DrivesRequestBuilder} 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 DrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get() { - return get(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of drives (document libraries) under this site. - * @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 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 DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DrivesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of drives (document libraries) under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java deleted file mode 100644 index 3128fda5ed1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns; - -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -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 manage the externalColumns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} 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 ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get externalColumns from groups - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * Get externalColumns from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Get externalColumns from groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get externalColumns from groups - * @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 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 ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExternalColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get externalColumns from groups - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java deleted file mode 100644 index c6ea6d76368..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.items; - -import com.microsoft.graph.models.BaseItemCollectionResponse; -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 manage the items property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} 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 ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get() { - return get(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @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 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 ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 6fc410b3905..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java deleted file mode 100644 index 5eecf901dab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lists; - -import com.microsoft.graph.models.List; -import com.microsoft.graph.models.ListCollectionResponse; -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 manage the lists property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ListsRequestBuilder} 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 ListsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of lists under this site. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get() { - return get(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body) { - return post(body, null); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * The collection of lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of lists under this site. - * @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 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; - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of lists under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java deleted file mode 100644 index d08fd7f7708..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.onenote; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Onenote; -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 manage the onenote property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OnenoteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link OnenoteRequestBuilder} 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 OnenoteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property onenote for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property onenote for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Calls the OneNote service for notebook related operations. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get() { - return get(null); - } - /** - * Calls the OneNote service for notebook related operations. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body) { - return patch(body, null); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Delete navigation property onenote for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property onenote for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Calls the OneNote service for notebook related operations. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Calls the OneNote service for notebook related operations. - * @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 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; - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OnenoteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Calls the OneNote service for notebook related operations. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java deleted file mode 100644 index 581409547d7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.operations; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.RichLongRunningOperation; -import com.microsoft.graph.models.RichLongRunningOperationCollectionResponse; -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 manage the operations property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} 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 OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of long-running operations on the site. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get() { - return get(null); - } - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * The collection of long-running operations on the site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long-running operations on the site. - * @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 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; - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of long-running operations on the site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java deleted file mode 100644 index 5614b48a79a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages; - -import com.microsoft.graph.models.BaseSitePage; -import com.microsoft.graph.models.BaseSitePageCollectionResponse; -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 manage the pages property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PagesRequestBuilder} 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 PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get() { - return get(null); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { - return post(body, null); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @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 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; - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PagesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of pages in the baseSitePages list in this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 6a31bec9a94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.permissions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.graph.models.PermissionCollectionResponse; -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 manage the permissions property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} 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 PermissionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get() { - return get(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, PermissionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body) { - return post(body, null); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The permissions associated with the site. Nullable. - * @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 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; - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The permissions associated with the site. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java deleted file mode 100644 index 96e6944cfc3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.sites; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.SiteCollectionResponse; -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 manage the sites property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SitesRequestBuilder} 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 SitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get() { - return get(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SiteCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of the sub-sites under this site. - * @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 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 SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SitesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of the sub-sites under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java deleted file mode 100644 index 84f09077c79..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstore; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.termstore.Store; -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 manage the termStore property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TermStoreRequestBuilder} 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 TermStoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property termStore for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property termStore for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The default termStore under this site. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get() { - return get(null); - } - /** - * The default termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body) { - return patch(body, null); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Delete navigation property termStore for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property termStore for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The default termStore under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default termStore under this site. - * @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 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; - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The default termStore under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java deleted file mode 100644 index 87c91e592f2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstores; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.termstore.Store; -import com.microsoft.graph.models.termstore.StoreCollectionResponse; -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 manage the termStores property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoresRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoresRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoresRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TermStoresRequestBuilder} 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 TermStoresRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of termStores under this site. - * @return a {@link StoreCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public StoreCollectionResponse get() { - return get(null); - } - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link StoreCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public StoreCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, StoreCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store post(@jakarta.annotation.Nonnull final Store body) { - return post(body, null); - } - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store post(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * The collection of termStores under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of termStores under this site. - * @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 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; - } - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TermStoresRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoresRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoresRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of termStores under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/ChannelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/ChannelsRequestBuilder.java index 187b6777499..454f0f37508 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/ChannelsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/ChannelsRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.groups.item.team.channels.count.CountRequestBuilder; import com.microsoft.graph.groups.item.team.channels.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.groups.item.team.channels.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.ChannelItemRequestBuilder; import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.ChannelCollectionResponse; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param channelId The unique identifier of channel diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..1741725fd86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.groups.item.team.channels.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..657f553c73f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.groups.item.team.channels.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/ChannelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/ChannelItemRequestBuilder.java index ce51cf20cb7..e7126ac7f71 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/ChannelItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/ChannelItemRequestBuilder.java @@ -1,5 +1,6 @@ package com.microsoft.graph.groups.item.team.channels.item; +import com.microsoft.graph.groups.item.team.channels.item.archive.ArchiveRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.filesfolder.FilesFolderRequestBuilder; @@ -9,6 +10,7 @@ import com.microsoft.graph.groups.item.team.channels.item.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.groups.item.team.channels.item.tabs.TabsRequestBuilder; +import com.microsoft.graph.groups.item.team.channels.item.unarchive.UnarchiveRequestBuilder; import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link ChannelItemRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..67625140381 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.groups.item.team.channels.item.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..70fb7463ede --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.groups.item.team.channels.item.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..b777509fd1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/channels/item/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.groups.item.team.channels.item.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/PrimaryChannelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/PrimaryChannelRequestBuilder.java index 2321a9323c4..bdc11c95a6b 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/PrimaryChannelRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/PrimaryChannelRequestBuilder.java @@ -1,5 +1,6 @@ package com.microsoft.graph.groups.item.team.primarychannel; +import com.microsoft.graph.groups.item.team.primarychannel.archive.ArchiveRequestBuilder; import com.microsoft.graph.groups.item.team.primarychannel.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.groups.item.team.primarychannel.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.groups.item.team.primarychannel.filesfolder.FilesFolderRequestBuilder; @@ -9,6 +10,7 @@ import com.microsoft.graph.groups.item.team.primarychannel.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.groups.item.team.primarychannel.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.groups.item.team.primarychannel.tabs.TabsRequestBuilder; +import com.microsoft.graph.groups.item.team.primarychannel.unarchive.UnarchiveRequestBuilder; import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link PrimaryChannelRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..90f3bbec57a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.groups.item.team.primarychannel.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..3a9235059f2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.groups.item.team.primarychannel.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..7148601bd33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/groups/item/team/primarychannel/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.groups.item.team.primarychannel.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java index 7986fbc7dff..32a9a7bb2c5 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java @@ -79,7 +79,7 @@ public Extension get(@jakarta.annotation.Nullable final java.util.function.Consu return this.requestAdapter.send(requestInfo, errorMapping, Extension::createFromDiscriminatorValue); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @return a {@link Extension} * @throws ODataError When receiving a 4XX or 5XX status code @@ -90,7 +90,7 @@ public Extension patch(@jakarta.annotation.Nonnull final Extension body) { return patch(body, null); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Extension} @@ -146,7 +146,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -155,7 +155,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/groupsettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groupsettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java index b7173a7fa22..67729e4be83 100644 --- a/src/main/java/com/microsoft/graph/generated/groupsettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groupsettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.java index 283ae03c85e..115ce058d6e 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.AttributesRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.OnAttributeCollectionExternalUsersSelfServiceSignUp; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -10,7 +11,6 @@ import com.microsoft.kiota.RequestOption; import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParsableFactory; -import java.io.InputStream; import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -45,29 +45,29 @@ public GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder(@j super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp", rawUrl); } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection - * @return a {@link InputStream} + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp + * @return a {@link OnAttributeCollectionExternalUsersSelfServiceSignUp} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public InputStream get() { + public OnAttributeCollectionExternalUsersSelfServiceSignUp get() { return get(null); } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} + * @return a {@link OnAttributeCollectionExternalUsersSelfServiceSignUp} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + public OnAttributeCollectionExternalUsersSelfServiceSignUp get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); + return this.requestAdapter.send(requestInfo, errorMapping, OnAttributeCollectionExternalUsersSelfServiceSignUp::createFromDiscriminatorValue); } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -75,7 +75,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java index 048416114c9..b63e6548785 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.IdentityProvidersRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -10,7 +11,6 @@ import com.microsoft.kiota.RequestOption; import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParsableFactory; -import java.io.InputStream; import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -45,29 +45,29 @@ public GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequest super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp", rawUrl); } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection - * @return a {@link InputStream} + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + * @return a {@link OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public InputStream get() { + public OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp get() { return get(null); } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} + * @return a {@link OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + public OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); + return this.requestAdapter.send(requestInfo, errorMapping, OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::createFromDiscriminatorValue); } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -75,7 +75,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/CombinationConfigurationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/CombinationConfigurationsRequestBuilder.java index 328a13c6b5c..f736099dbfd 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/CombinationConfigurationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/CombinationConfigurationsRequestBuilder.java @@ -60,7 +60,7 @@ public CombinationConfigurationsRequestBuilder(@jakarta.annotation.Nonnull final super(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @return a {@link AuthenticationCombinationConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -70,7 +70,7 @@ public AuthenticationCombinationConfigurationCollectionResponse get() { return get(null); } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationCombinationConfigurationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -84,7 +84,7 @@ public AuthenticationCombinationConfigurationCollectionResponse get(@jakarta.ann return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationCombinationConfigurationCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param body The request body * @return a {@link AuthenticationCombinationConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code @@ -95,7 +95,7 @@ public AuthenticationCombinationConfiguration post(@jakarta.annotation.Nonnull f return post(body, null); } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationCombinationConfiguration} @@ -111,7 +111,7 @@ public AuthenticationCombinationConfiguration post(@jakarta.annotation.Nonnull f return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationCombinationConfiguration::createFromDiscriminatorValue); } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -165,7 +165,7 @@ public CombinationConfigurationsRequestBuilder withUrl(@jakarta.annotation.Nonnu return new CombinationConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/item/AuthenticationCombinationConfigurationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/item/AuthenticationCombinationConfigurationItemRequestBuilder.java index 9a8bf47c2b5..9d74fb83a9b 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/item/AuthenticationCombinationConfigurationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/authenticationstrength/policies/item/combinationconfigurations/item/AuthenticationCombinationConfigurationItemRequestBuilder.java @@ -81,7 +81,7 @@ public AuthenticationCombinationConfiguration get(@jakarta.annotation.Nullable f return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationCombinationConfiguration::createFromDiscriminatorValue); } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param body The request body * @return a {@link AuthenticationCombinationConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code @@ -92,7 +92,7 @@ public AuthenticationCombinationConfiguration patch(@jakarta.annotation.Nonnull return patch(body, null); } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AuthenticationCombinationConfiguration} @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java index ae4a14f7286..ae7c950a627 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java @@ -37,18 +37,18 @@ public NamedLocationItemRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation object. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation 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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -108,7 +108,7 @@ public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body, return this.requestAdapter.send(requestInfo, errorMapping, NamedLocation::createFromDiscriminatorValue); } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentpolicies/item/AccessPackageAssignmentPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentpolicies/item/AccessPackageAssignmentPolicyItemRequestBuilder.java index 62d385dd9ee..b11a0fcc833 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentpolicies/item/AccessPackageAssignmentPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentpolicies/item/AccessPackageAssignmentPolicyItemRequestBuilder.java @@ -117,23 +117,21 @@ public AccessPackageAssignmentPolicy get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, AccessPackageAssignmentPolicy::createFromDiscriminatorValue); } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param body The request body * @return a {@link AccessPackageAssignmentPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public AccessPackageAssignmentPolicy put(@jakarta.annotation.Nonnull final AccessPackageAssignmentPolicy body) { return put(body, null); } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AccessPackageAssignmentPolicy} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public AccessPackageAssignmentPolicy put(@jakarta.annotation.Nonnull final AccessPackageAssignmentPolicy body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -184,7 +182,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param body The request body * @return a {@link RequestInformation} */ @@ -193,7 +191,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, null); } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java index d85105df21a..0adeac9c19c 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/catalogs/item/customworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java @@ -37,18 +37,18 @@ public CustomCalloutExtensionItemRequestBuilder(@jakarta.annotation.Nonnull fina super(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +57,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 an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get() { return get(null); } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CustomCalloutExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomCalloutExtension get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public CustomCalloutExtension patch(@jakarta.annotation.Nonnull final CustomCall return this.requestAdapter.send(requestInfo, errorMapping, CustomCalloutExtension::createFromDiscriminatorValue); } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -188,7 +188,7 @@ public CustomCalloutExtensionItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java index 214e6a6fbb4..c62a6089d78 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java @@ -138,7 +138,7 @@ public WorkflowItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUr /** * Delete a workflow object. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); @@ -147,7 +147,7 @@ public void delete() { * Delete a workflow 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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); diff --git a/src/main/java/com/microsoft/graph/generated/invitations/InvitationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/InvitationsRequestBuilder.java index 71c514df99c..b709f37a779 100644 --- a/src/main/java/com/microsoft/graph/generated/invitations/InvitationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/invitations/InvitationsRequestBuilder.java @@ -1,7 +1,8 @@ package com.microsoft.graph.invitations; import com.microsoft.graph.invitations.count.CountRequestBuilder; -import com.microsoft.graph.invitations.item.InvitationItemRequestBuilder; +import com.microsoft.graph.invitations.inviteduser.InvitedUserRequestBuilder; +import com.microsoft.graph.invitations.invitedusersponsors.InvitedUserSponsorsRequestBuilder; import com.microsoft.graph.models.Invitation; import com.microsoft.graph.models.InvitationCollectionResponse; import com.microsoft.graph.models.odataerrors.ODataError; @@ -32,16 +33,20 @@ public CountRequestBuilder count() { return new CountRequestBuilder(pathParameters, requestAdapter); } /** - * Provides operations to manage the collection of invitation entities. - * @param invitationId The unique identifier of invitation - * @return a {@link InvitationItemRequestBuilder} + * Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity. + * @return a {@link InvitedUserRequestBuilder} */ @jakarta.annotation.Nonnull - public InvitationItemRequestBuilder byInvitationId(@jakarta.annotation.Nonnull final String invitationId) { - Objects.requireNonNull(invitationId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("invitation%2Did", invitationId); - return new InvitationItemRequestBuilder(urlTplParams, requestAdapter); + public InvitedUserRequestBuilder invitedUser() { + return new InvitedUserRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + * @return a {@link InvitedUserSponsorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public InvitedUserSponsorsRequestBuilder invitedUserSponsors() { + return new InvitedUserSponsorsRequestBuilder(pathParameters, requestAdapter); } /** * Instantiates a new {@link InvitationsRequestBuilder} and sets the default values. diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/InvitedUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/InvitedUserRequestBuilder.java similarity index 92% rename from src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/InvitedUserRequestBuilder.java rename to src/main/java/com/microsoft/graph/generated/invitations/inviteduser/InvitedUserRequestBuilder.java index 2f571246205..19fca65a5ac 100644 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/InvitedUserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/InvitedUserRequestBuilder.java @@ -1,7 +1,7 @@ -package com.microsoft.graph.invitations.item.inviteduser; +package com.microsoft.graph.invitations.inviteduser; -import com.microsoft.graph.invitations.item.inviteduser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.invitations.item.inviteduser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; +import com.microsoft.graph.invitations.inviteduser.mailboxsettings.MailboxSettingsRequestBuilder; +import com.microsoft.graph.invitations.inviteduser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.User; import com.microsoft.kiota.BaseRequestBuilder; @@ -44,7 +44,7 @@ public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { * @param requestAdapter The request adapter to use to execute the requests. */ public InvitedUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser{?%24expand,%24select}", pathParameters); + super(requestAdapter, "{+baseurl}/invitations/invitedUser{?%24expand,%24select}", pathParameters); } /** * Instantiates a new {@link InvitedUserRequestBuilder} and sets the default values. @@ -52,7 +52,7 @@ public InvitedUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/mailboxSettings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/mailboxSettings{?%24expand,%24select}", rawUrl); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get() { + return get(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { + return patch(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MailboxSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + * @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 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; + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update property mailboxSettings value. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 MailboxSettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java new file mode 100644 index 00000000000..4a50c61c649 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.invitations.inviteduser.serviceprovisioningerrors; + +import com.microsoft.graph.invitations.inviteduser.serviceprovisioningerrors.count.CountRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; +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; +/** + * Builds and executes requests for operations under /invitations/invitedUser/serviceProvisioningErrors + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get() { + return get(null); + } + /** + * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceProvisioningErrorCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); + } + /** + * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + * @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 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 ServiceProvisioningErrorsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..ac25c175c41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/invitations/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.invitations.inviteduser.serviceprovisioningerrors.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java similarity index 93% rename from src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java rename to src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java index 89d2d6e201d..96cc17097d4 100644 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/InvitedUserSponsorsRequestBuilder.java @@ -1,7 +1,7 @@ -package com.microsoft.graph.invitations.item.invitedusersponsors; +package com.microsoft.graph.invitations.invitedusersponsors; -import com.microsoft.graph.invitations.item.invitedusersponsors.count.CountRequestBuilder; -import com.microsoft.graph.invitations.item.invitedusersponsors.item.DirectoryObjectItemRequestBuilder; +import com.microsoft.graph.invitations.invitedusersponsors.count.CountRequestBuilder; +import com.microsoft.graph.invitations.invitedusersponsors.item.DirectoryObjectItemRequestBuilder; import com.microsoft.graph.models.DirectoryObjectCollectionResponse; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -48,7 +48,7 @@ public DirectoryObjectItemRequestBuilder byDirectoryObjectId(@jakarta.annotation * @param requestAdapter The request adapter to use to execute the requests. */ public InvitedUserSponsorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); } /** * Instantiates a new {@link InvitedUserSponsorsRequestBuilder} and sets the default values. @@ -56,7 +56,7 @@ public InvitedUserSponsorsRequestBuilder(@jakarta.annotation.Nonnull final HashM * @param requestAdapter The request adapter to use to execute the requests. */ public InvitedUserSponsorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** * The users or groups who are sponsors of the invited user. Sponsors are users and groups that are responsible for guest users' privileges in the tenant and for keeping the guest users' information and access up to date. diff --git a/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/count/CountRequestBuilder.java new file mode 100644 index 00000000000..8fad2980662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.invitations.invitedusersponsors.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java similarity index 94% rename from src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java rename to src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java index 88484768b1e..02c4e07662b 100644 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/invitations/invitedusersponsors/item/DirectoryObjectItemRequestBuilder.java @@ -1,4 +1,4 @@ -package com.microsoft.graph.invitations.item.invitedusersponsors.item; +package com.microsoft.graph.invitations.invitedusersponsors.item; import com.microsoft.graph.models.DirectoryObject; import com.microsoft.graph.models.odataerrors.ODataError; @@ -26,7 +26,7 @@ public class DirectoryObjectItemRequestBuilder extends BaseRequestBuilder { * @param requestAdapter The request adapter to use to execute the requests. */ public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", pathParameters); + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", pathParameters); } /** * Instantiates a new {@link DirectoryObjectItemRequestBuilder} and sets the default values. @@ -34,7 +34,7 @@ public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final HashM * @param requestAdapter The request adapter to use to execute the requests. */ public DirectoryObjectItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", rawUrl); + super(requestAdapter, "{+baseurl}/invitations/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", rawUrl); } /** * The users or groups who are sponsors of the invited user. Sponsors are users and groups that are responsible for guest users' privileges in the tenant and for keeping the guest users' information and access up to date. diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/InvitationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/item/InvitationItemRequestBuilder.java deleted file mode 100644 index d8af2684bca..00000000000 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/InvitationItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.invitations.item; - -import com.microsoft.graph.invitations.item.inviteduser.InvitedUserRequestBuilder; -import com.microsoft.graph.invitations.item.invitedusersponsors.InvitedUserSponsorsRequestBuilder; -import com.microsoft.graph.models.Invitation; -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 manage the collection of invitation entities. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class InvitationItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity. - * @return a {@link InvitedUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InvitedUserRequestBuilder invitedUser() { - return new InvitedUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. - * @return a {@link InvitedUserSponsorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InvitedUserSponsorsRequestBuilder invitedUserSponsors() { - return new InvitedUserSponsorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link InvitationItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InvitationItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link InvitationItemRequestBuilder} 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 InvitationItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete entity from invitations - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete entity from invitations - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get entity from invitations by key - * @return a {@link Invitation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Invitation get() { - return get(null); - } - /** - * Get entity from invitations by key - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Invitation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Invitation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Invitation::createFromDiscriminatorValue); - } - /** - * Update entity in invitations - * @param body The request body - * @return a {@link Invitation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Invitation patch(@jakarta.annotation.Nonnull final Invitation body) { - return patch(body, null); - } - /** - * Update entity in invitations - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Invitation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Invitation patch(@jakarta.annotation.Nonnull final Invitation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Invitation::createFromDiscriminatorValue); - } - /** - * Delete entity from invitations - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete entity from invitations - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get entity from invitations by key - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get entity from invitations by key - * @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 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; - } - /** - * Update entity in invitations - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Invitation body) { - return toPatchRequestInformation(body, null); - } - /** - * Update entity in invitations - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Invitation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 InvitationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InvitationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new InvitationItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get entity from invitations by key - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 4fc62b5b4da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.invitations.item.inviteduser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /invitations/{invitation-id}/invitedUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 079692a2d61..00000000000 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.invitations.item.inviteduser.serviceprovisioningerrors; - -import com.microsoft.graph.invitations.item.inviteduser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -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; -/** - * Builds and executes requests for operations under /invitations/{invitation-id}/invitedUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c4ba96b1381..00000000000 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/inviteduser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.invitations.item.inviteduser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/count/CountRequestBuilder.java deleted file mode 100644 index 9753f42ece8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/invitations/item/invitedusersponsors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.invitations.item.invitedusersponsors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/models/AccessPackage.java b/src/main/java/com/microsoft/graph/generated/models/AccessPackage.java index 86302ead19d..6ef4d4b5a4e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AccessPackage.java +++ b/src/main/java/com/microsoft/graph/generated/models/AccessPackage.java @@ -110,7 +110,7 @@ public java.util.List getIncompatibleGroups() { return this.backingStore.get("incompatibleGroups"); } /** - * Gets the isHidden property value. Whether the access package is hidden from the requestor. + * Gets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -209,7 +209,7 @@ public void setIncompatibleGroups(@jakarta.annotation.Nullable final java.util.L this.backingStore.set("incompatibleGroups", value); } /** - * Sets the isHidden property value. Whether the access package is hidden from the requestor. + * Sets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @param value Value to set for the isHidden property. */ public void setIsHidden(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AppManagementApplicationConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AppManagementApplicationConfiguration.java new file mode 100644 index 00000000000..3834c8eef0f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AppManagementApplicationConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.models; + +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 AppManagementApplicationConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link AppManagementApplicationConfiguration} and sets the default values. + */ + public AppManagementApplicationConfiguration() { + super(); + this.setOdataType("#microsoft.graph.appManagementApplicationConfiguration"); + } + /** + * 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 AppManagementApplicationConfiguration} + */ + @jakarta.annotation.Nonnull + public static AppManagementApplicationConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppManagementApplicationConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * 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); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AppManagementConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AppManagementConfiguration.java index f2589b72482..7935c7cdd6d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AppManagementConfiguration.java +++ b/src/main/java/com/microsoft/graph/generated/models/AppManagementConfiguration.java @@ -32,6 +32,15 @@ public AppManagementConfiguration() { @jakarta.annotation.Nonnull public static AppManagementConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.appManagementApplicationConfiguration": return new AppManagementApplicationConfiguration(); + case "#microsoft.graph.appManagementServicePrincipalConfiguration": return new AppManagementServicePrincipalConfiguration(); + case "#microsoft.graph.customAppManagementConfiguration": return new CustomAppManagementConfiguration(); + } + } return new AppManagementConfiguration(); } /** diff --git a/src/main/java/com/microsoft/graph/generated/models/AppManagementPolicy.java b/src/main/java/com/microsoft/graph/generated/models/AppManagementPolicy.java index 8312ecde737..4fc48246876 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AppManagementPolicy.java +++ b/src/main/java/com/microsoft/graph/generated/models/AppManagementPolicy.java @@ -42,7 +42,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("appliesTo", (n) -> { this.setAppliesTo(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); }); deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); - deserializerMap.put("restrictions", (n) -> { this.setRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("restrictions", (n) -> { this.setRestrictions(n.getObjectValue(CustomAppManagementConfiguration::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -55,10 +55,10 @@ public Boolean getIsEnabled() { } /** * Gets the restrictions property value. Restrictions that apply to an application or service principal object. - * @return a {@link AppManagementConfiguration} + * @return a {@link CustomAppManagementConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getRestrictions() { + public CustomAppManagementConfiguration getRestrictions() { return this.backingStore.get("restrictions"); } /** @@ -90,7 +90,7 @@ public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { * Sets the restrictions property value. Restrictions that apply to an application or service principal object. * @param value Value to set for the restrictions property. */ - public void setRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setRestrictions(@jakarta.annotation.Nullable final CustomAppManagementConfiguration value) { this.backingStore.set("restrictions", value); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/AppManagementServicePrincipalConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AppManagementServicePrincipalConfiguration.java new file mode 100644 index 00000000000..e9bdba82800 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AppManagementServicePrincipalConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.models; + +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 AppManagementServicePrincipalConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link AppManagementServicePrincipalConfiguration} and sets the default values. + */ + public AppManagementServicePrincipalConfiguration() { + super(); + this.setOdataType("#microsoft.graph.appManagementServicePrincipalConfiguration"); + } + /** + * 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 AppManagementServicePrincipalConfiguration} + */ + @jakarta.annotation.Nonnull + public static AppManagementServicePrincipalConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppManagementServicePrincipalConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * 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); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Application.java b/src/main/java/com/microsoft/graph/generated/models/Application.java index 29323b19b0b..5ef711e4f83 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Application.java +++ b/src/main/java/com/microsoft/graph/generated/models/Application.java @@ -4,6 +4,7 @@ import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; import java.time.OffsetDateTime; +import java.util.EnumSet; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -177,6 +178,7 @@ public Map> getFieldDeserializers deserializerMap.put("isFallbackPublicClient", (n) -> { this.setIsFallbackPublicClient(n.getBooleanValue()); }); deserializerMap.put("keyCredentials", (n) -> { this.setKeyCredentials(n.getCollectionOfObjectValues(KeyCredential::createFromDiscriminatorValue)); }); deserializerMap.put("logo", (n) -> { this.setLogo(n.getByteArrayValue()); }); + deserializerMap.put("nativeAuthenticationApisEnabled", (n) -> { this.setNativeAuthenticationApisEnabled(n.getEnumSetValue(NativeAuthenticationApisEnabled::forValue)); }); deserializerMap.put("notes", (n) -> { this.setNotes(n.getStringValue()); }); deserializerMap.put("oauth2RequirePostResponse", (n) -> { this.setOauth2RequirePostResponse(n.getBooleanValue()); }); deserializerMap.put("optionalClaims", (n) -> { this.setOptionalClaims(n.getObjectValue(OptionalClaims::createFromDiscriminatorValue)); }); @@ -266,6 +268,14 @@ public java.util.List getKeyCredentials() { public byte[] getLogo() { return this.backingStore.get("logo"); } + /** + * Gets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. + * @return a {@link EnumSet} + */ + @jakarta.annotation.Nullable + public EnumSet getNativeAuthenticationApisEnabled() { + return this.backingStore.get("nativeAuthenticationApisEnabled"); + } /** * Gets the notes property value. Notes relevant for the management of the application. * @return a {@link String} @@ -480,6 +490,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("isFallbackPublicClient", this.getIsFallbackPublicClient()); writer.writeCollectionOfObjectValues("keyCredentials", this.getKeyCredentials()); writer.writeByteArrayValue("logo", this.getLogo()); + writer.writeEnumSetValue("nativeAuthenticationApisEnabled", this.getNativeAuthenticationApisEnabled()); writer.writeStringValue("notes", this.getNotes()); writer.writeBooleanValue("oauth2RequirePostResponse", this.getOauth2RequirePostResponse()); writer.writeObjectValue("optionalClaims", this.getOptionalClaims()); @@ -665,6 +676,13 @@ public void setKeyCredentials(@jakarta.annotation.Nullable final java.util.List< public void setLogo(@jakarta.annotation.Nullable final byte[] value) { this.backingStore.set("logo", value); } + /** + * Sets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. + * @param value Value to set for the nativeAuthenticationApisEnabled property. + */ + public void setNativeAuthenticationApisEnabled(@jakarta.annotation.Nullable final EnumSet value) { + this.backingStore.set("nativeAuthenticationApisEnabled", value); + } /** * Sets the notes property value. Notes relevant for the management of the application. * @param value Value to set for the notes property. diff --git a/src/main/java/com/microsoft/graph/generated/models/AppliedConditionalAccessPolicy.java b/src/main/java/com/microsoft/graph/generated/models/AppliedConditionalAccessPolicy.java index 225991e3052..49d57cbd8b6 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AppliedConditionalAccessPolicy.java +++ b/src/main/java/com/microsoft/graph/generated/models/AppliedConditionalAccessPolicy.java @@ -56,7 +56,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the displayName property value. Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce'). + * Gets the displayName property value. Refers to the name of the conditional access policy (example: 'Require MFA for Salesforce'). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -111,7 +111,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. + * Gets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. * @return a {@link AppliedConditionalAccessPolicyResult} */ @jakarta.annotation.Nullable @@ -148,7 +148,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the displayName property value. Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce'). + * Sets the displayName property value. Refers to the name of the conditional access policy (example: 'Require MFA for Salesforce'). * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { @@ -183,7 +183,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. + * Sets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. * @param value Value to set for the result property. */ public void setResult(@jakarta.annotation.Nullable final AppliedConditionalAccessPolicyResult value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AssignedLicense.java b/src/main/java/com/microsoft/graph/generated/models/AssignedLicense.java index 67c701fb3a0..7afb62708dc 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AssignedLicense.java +++ b/src/main/java/com/microsoft/graph/generated/models/AssignedLicense.java @@ -57,7 +57,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. + * Gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -85,7 +85,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the skuId property value. The unique identifier for the SKU. + * Gets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. + * Sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. * @param value Value to set for the disabledPlans property. */ public void setDisabledPlans(@jakarta.annotation.Nullable final java.util.List value) { @@ -133,7 +133,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the skuId property value. The unique identifier for the SKU. + * Sets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. * @param value Value to set for the skuId property. */ public void setSkuId(@jakarta.annotation.Nullable final UUID value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AssignmentType.java b/src/main/java/com/microsoft/graph/generated/models/AssignmentType.java index 10eb3a0b9da..efe2b13b58e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AssignmentType.java +++ b/src/main/java/com/microsoft/graph/generated/models/AssignmentType.java @@ -7,7 +7,8 @@ public enum AssignmentType implements ValuedEnum { Required("required"), Recommended("recommended"), - UnknownFutureValue("unknownFutureValue"); + UnknownFutureValue("unknownFutureValue"), + PeerRecommended("peerRecommended"); public final String value; AssignmentType(final String value) { this.value = value; @@ -21,6 +22,7 @@ public static AssignmentType forValue(@jakarta.annotation.Nonnull final String s case "required": return Required; case "recommended": return Recommended; case "unknownFutureValue": return UnknownFutureValue; + case "peerRecommended": return PeerRecommended; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/generated/models/Authentication.java b/src/main/java/com/microsoft/graph/generated/models/Authentication.java index 6eed1fee87d..eebbbd641a0 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Authentication.java +++ b/src/main/java/com/microsoft/graph/generated/models/Authentication.java @@ -76,7 +76,7 @@ public java.util.List getMicrosoftAu return this.backingStore.get("microsoftAuthenticatorMethods"); } /** - * Gets the operations property value. Represents the status of a long-running operation. + * Gets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -170,7 +170,7 @@ public void setMicrosoftAuthenticatorMethods(@jakarta.annotation.Nullable final this.backingStore.set("microsoftAuthenticatorMethods", value); } /** - * Sets the operations property value. Represents the status of a long-running operation. + * Sets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @param value Value to set for the operations property. */ public void setOperations(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationCombinationConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationCombinationConfiguration.java index 2be99e458c5..73418b76387 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AuthenticationCombinationConfiguration.java +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationCombinationConfiguration.java @@ -34,7 +34,7 @@ public static AuthenticationCombinationConfiguration createFromDiscriminatorValu return new AuthenticationCombinationConfiguration(); } /** - * Gets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object that's defined for the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. + * Gets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object, part of the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -61,7 +61,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfEnumValues("appliesToCombinations", this.getAppliesToCombinations()); } /** - * Sets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object that's defined for the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. + * Sets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object, part of the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. * @param value Value to set for the appliesToCombinations property. */ public void setAppliesToCombinations(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingAppointment.java b/src/main/java/com/microsoft/graph/generated/models/BookingAppointment.java index c7f6300350c..53b44fdb9aa 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BookingAppointment.java +++ b/src/main/java/com/microsoft/graph/generated/models/BookingAppointment.java @@ -4,6 +4,7 @@ import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -45,7 +46,23 @@ public String getAnonymousJoinWebUrl() { return this.backingStore.get("anonymousJoinWebUrl"); } /** - * Gets the customerEmailAddress property value. The customerEmailAddress property + * Gets the appointmentLabel property value. The custom label that can be stamped on this appointment by users. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAppointmentLabel() { + return this.backingStore.get("appointmentLabel"); + } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the appointment was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * Gets the customerEmailAddress property value. The SMTP address of the bookingCustomer who books the appointment. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -53,7 +70,7 @@ public String getCustomerEmailAddress() { return this.backingStore.get("customerEmailAddress"); } /** - * Gets the customerName property value. The customerName property + * Gets the customerName property value. The customer's name. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -61,7 +78,7 @@ public String getCustomerName() { return this.backingStore.get("customerName"); } /** - * Gets the customerNotes property value. Notes from the customer associated with this appointment. + * Gets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when you read this bookingAppointment by its ID. You can set this property only when you initially create an appointment with a new customer. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -69,7 +86,7 @@ public String getCustomerNotes() { return this.backingStore.get("customerNotes"); } /** - * Gets the customerPhone property value. The customerPhone property + * Gets the customerPhone property value. The customer's phone number. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -117,6 +134,8 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("additionalInformation", (n) -> { this.setAdditionalInformation(n.getStringValue()); }); deserializerMap.put("anonymousJoinWebUrl", (n) -> { this.setAnonymousJoinWebUrl(n.getStringValue()); }); + deserializerMap.put("appointmentLabel", (n) -> { this.setAppointmentLabel(n.getStringValue()); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("customerEmailAddress", (n) -> { this.setCustomerEmailAddress(n.getStringValue()); }); deserializerMap.put("customerName", (n) -> { this.setCustomerName(n.getStringValue()); }); deserializerMap.put("customerNotes", (n) -> { this.setCustomerNotes(n.getStringValue()); }); @@ -126,8 +145,10 @@ public Map> getFieldDeserializers deserializerMap.put("duration", (n) -> { this.setDuration(n.getPeriodAndDurationValue()); }); deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); }); deserializerMap.put("filledAttendeesCount", (n) -> { this.setFilledAttendeesCount(n.getIntegerValue()); }); + deserializerMap.put("isCustomerAllowedToManageBooking", (n) -> { this.setIsCustomerAllowedToManageBooking(n.getBooleanValue()); }); deserializerMap.put("isLocationOnline", (n) -> { this.setIsLocationOnline(n.getBooleanValue()); }); deserializerMap.put("joinWebUrl", (n) -> { this.setJoinWebUrl(n.getStringValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("maximumAttendeesCount", (n) -> { this.setMaximumAttendeesCount(n.getIntegerValue()); }); deserializerMap.put("optOutOfCustomerEmail", (n) -> { this.setOptOutOfCustomerEmail(n.getBooleanValue()); }); deserializerMap.put("postBuffer", (n) -> { this.setPostBuffer(n.getPeriodAndDurationValue()); }); @@ -146,7 +167,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the filledAttendeesCount property value. The current number of customers in the appointment + * Gets the filledAttendeesCount property value. The current number of customers in the appointment. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -154,7 +175,15 @@ public Integer getFilledAttendeesCount() { return this.backingStore.get("filledAttendeesCount"); } /** - * Gets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. + * Gets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsCustomerAllowedToManageBooking() { + return this.backingStore.get("isCustomerAllowedToManageBooking"); + } + /** + * Gets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -169,6 +198,14 @@ public Boolean getIsLocationOnline() { public String getJoinWebUrl() { return this.backingStore.get("joinWebUrl"); } + /** + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } /** * Gets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. * @return a {@link Integer} @@ -226,7 +263,7 @@ public java.util.List getReminders() { return this.backingStore.get("reminders"); } /** - * Gets the selfServiceAppointmentId property value. An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer. Only supported for appointment if maxAttendeeCount is 1. + * Gets the selfServiceAppointmentId property value. Another tracking ID for the appointment, if the appointment was created directly by the customer on the scheduling page, as opposed to by a staff member on behalf of the customer. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -298,6 +335,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeStringValue("additionalInformation", this.getAdditionalInformation()); writer.writeStringValue("anonymousJoinWebUrl", this.getAnonymousJoinWebUrl()); + writer.writeStringValue("appointmentLabel", this.getAppointmentLabel()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("customerEmailAddress", this.getCustomerEmailAddress()); writer.writeStringValue("customerName", this.getCustomerName()); writer.writeStringValue("customerNotes", this.getCustomerNotes()); @@ -305,8 +344,10 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("customers", this.getCustomers()); writer.writeStringValue("customerTimeZone", this.getCustomerTimeZone()); writer.writeObjectValue("endDateTime", this.getEndDateTime()); + writer.writeBooleanValue("isCustomerAllowedToManageBooking", this.getIsCustomerAllowedToManageBooking()); writer.writeBooleanValue("isLocationOnline", this.getIsLocationOnline()); writer.writeStringValue("joinWebUrl", this.getJoinWebUrl()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); writer.writeIntegerValue("maximumAttendeesCount", this.getMaximumAttendeesCount()); writer.writeBooleanValue("optOutOfCustomerEmail", this.getOptOutOfCustomerEmail()); writer.writePeriodAndDurationValue("postBuffer", this.getPostBuffer()); @@ -338,28 +379,42 @@ public void setAnonymousJoinWebUrl(@jakarta.annotation.Nullable final String val this.backingStore.set("anonymousJoinWebUrl", value); } /** - * Sets the customerEmailAddress property value. The customerEmailAddress property + * Sets the appointmentLabel property value. The custom label that can be stamped on this appointment by users. + * @param value Value to set for the appointmentLabel property. + */ + public void setAppointmentLabel(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("appointmentLabel", value); + } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the appointment was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } + /** + * Sets the customerEmailAddress property value. The SMTP address of the bookingCustomer who books the appointment. * @param value Value to set for the customerEmailAddress property. */ public void setCustomerEmailAddress(@jakarta.annotation.Nullable final String value) { this.backingStore.set("customerEmailAddress", value); } /** - * Sets the customerName property value. The customerName property + * Sets the customerName property value. The customer's name. * @param value Value to set for the customerName property. */ public void setCustomerName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("customerName", value); } /** - * Sets the customerNotes property value. Notes from the customer associated with this appointment. + * Sets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when you read this bookingAppointment by its ID. You can set this property only when you initially create an appointment with a new customer. * @param value Value to set for the customerNotes property. */ public void setCustomerNotes(@jakarta.annotation.Nullable final String value) { this.backingStore.set("customerNotes", value); } /** - * Sets the customerPhone property value. The customerPhone property + * Sets the customerPhone property value. The customer's phone number. * @param value Value to set for the customerPhone property. */ public void setCustomerPhone(@jakarta.annotation.Nullable final String value) { @@ -394,14 +449,21 @@ public void setEndDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone v this.backingStore.set("endDateTime", value); } /** - * Sets the filledAttendeesCount property value. The current number of customers in the appointment + * Sets the filledAttendeesCount property value. The current number of customers in the appointment. * @param value Value to set for the filledAttendeesCount property. */ public void setFilledAttendeesCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("filledAttendeesCount", value); } /** - * Sets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. + * Sets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. + * @param value Value to set for the isCustomerAllowedToManageBooking property. + */ + public void setIsCustomerAllowedToManageBooking(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isCustomerAllowedToManageBooking", value); + } + /** + * Sets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false. * @param value Value to set for the isLocationOnline property. */ public void setIsLocationOnline(@jakarta.annotation.Nullable final Boolean value) { @@ -414,6 +476,13 @@ public void setIsLocationOnline(@jakarta.annotation.Nullable final Boolean value public void setJoinWebUrl(@jakarta.annotation.Nullable final String value) { this.backingStore.set("joinWebUrl", value); } + /** + * Sets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastUpdatedDateTime property. + */ + public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastUpdatedDateTime", value); + } /** * Sets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. * @param value Value to set for the maximumAttendeesCount property. @@ -464,7 +533,7 @@ public void setReminders(@jakarta.annotation.Nullable final java.util.List getAppointments() { return this.backingStore.get("appointments"); } + /** + * Gets the bookingPageSettings property value. Settings for the published booking page. + * @return a {@link BookingPageSettings} + */ + @jakarta.annotation.Nullable + public BookingPageSettings getBookingPageSettings() { + return this.backingStore.get("bookingPageSettings"); + } /** * Gets the businessHours property value. The hours of operation for the business. * @return a {@link java.util.List} @@ -67,6 +76,14 @@ public String getBusinessType() { public java.util.List getCalendarView() { return this.backingStore.get("calendarView"); } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the booking business was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * Gets the customers property value. All the customers of this business. Read-only. Nullable. * @return a {@link java.util.List} @@ -116,9 +133,11 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(PhysicalAddress::createFromDiscriminatorValue)); }); deserializerMap.put("appointments", (n) -> { this.setAppointments(n.getCollectionOfObjectValues(BookingAppointment::createFromDiscriminatorValue)); }); + deserializerMap.put("bookingPageSettings", (n) -> { this.setBookingPageSettings(n.getObjectValue(BookingPageSettings::createFromDiscriminatorValue)); }); deserializerMap.put("businessHours", (n) -> { this.setBusinessHours(n.getCollectionOfObjectValues(BookingWorkHours::createFromDiscriminatorValue)); }); deserializerMap.put("businessType", (n) -> { this.setBusinessType(n.getStringValue()); }); deserializerMap.put("calendarView", (n) -> { this.setCalendarView(n.getCollectionOfObjectValues(BookingAppointment::createFromDiscriminatorValue)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("customers", (n) -> { this.setCustomers(n.getCollectionOfObjectValues(BookingCustomerBase::createFromDiscriminatorValue)); }); deserializerMap.put("customQuestions", (n) -> { this.setCustomQuestions(n.getCollectionOfObjectValues(BookingCustomQuestion::createFromDiscriminatorValue)); }); deserializerMap.put("defaultCurrencyIso", (n) -> { this.setDefaultCurrencyIso(n.getStringValue()); }); @@ -126,6 +145,7 @@ public Map> getFieldDeserializers deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); deserializerMap.put("isPublished", (n) -> { this.setIsPublished(n.getBooleanValue()); }); deserializerMap.put("languageTag", (n) -> { this.setLanguageTag(n.getStringValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("phone", (n) -> { this.setPhone(n.getStringValue()); }); deserializerMap.put("publicUrl", (n) -> { this.setPublicUrl(n.getStringValue()); }); deserializerMap.put("schedulingPolicy", (n) -> { this.setSchedulingPolicy(n.getObjectValue(BookingSchedulingPolicy::createFromDiscriminatorValue)); }); @@ -150,6 +170,14 @@ public Boolean getIsPublished() { public String getLanguageTag() { return this.backingStore.get("languageTag"); } + /** + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } /** * Gets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. * @return a {@link String} @@ -207,15 +235,18 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeObjectValue("address", this.getAddress()); writer.writeCollectionOfObjectValues("appointments", this.getAppointments()); + writer.writeObjectValue("bookingPageSettings", this.getBookingPageSettings()); writer.writeCollectionOfObjectValues("businessHours", this.getBusinessHours()); writer.writeStringValue("businessType", this.getBusinessType()); writer.writeCollectionOfObjectValues("calendarView", this.getCalendarView()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeCollectionOfObjectValues("customers", this.getCustomers()); writer.writeCollectionOfObjectValues("customQuestions", this.getCustomQuestions()); writer.writeStringValue("defaultCurrencyIso", this.getDefaultCurrencyIso()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("email", this.getEmail()); writer.writeStringValue("languageTag", this.getLanguageTag()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); writer.writeStringValue("phone", this.getPhone()); writer.writeObjectValue("schedulingPolicy", this.getSchedulingPolicy()); writer.writeCollectionOfObjectValues("services", this.getServices()); @@ -236,6 +267,13 @@ public void setAddress(@jakarta.annotation.Nullable final PhysicalAddress value) public void setAppointments(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("appointments", value); } + /** + * Sets the bookingPageSettings property value. Settings for the published booking page. + * @param value Value to set for the bookingPageSettings property. + */ + public void setBookingPageSettings(@jakarta.annotation.Nullable final BookingPageSettings value) { + this.backingStore.set("bookingPageSettings", value); + } /** * Sets the businessHours property value. The hours of operation for the business. * @param value Value to set for the businessHours property. @@ -257,6 +295,13 @@ public void setBusinessType(@jakarta.annotation.Nullable final String value) { public void setCalendarView(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("calendarView", value); } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the booking business was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } /** * Sets the customers property value. All the customers of this business. Read-only. Nullable. * @param value Value to set for the customers property. @@ -306,6 +351,13 @@ public void setIsPublished(@jakarta.annotation.Nullable final Boolean value) { public void setLanguageTag(@jakarta.annotation.Nullable final String value) { this.backingStore.set("languageTag", value); } + /** + * Sets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastUpdatedDateTime property. + */ + public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastUpdatedDateTime", value); + } /** * Sets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. * @param value Value to set for the phone property. diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingCustomQuestion.java b/src/main/java/com/microsoft/graph/generated/models/BookingCustomQuestion.java index d0a622eded6..eb8086be336 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BookingCustomQuestion.java +++ b/src/main/java/com/microsoft/graph/generated/models/BookingCustomQuestion.java @@ -3,6 +3,7 @@ import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -43,6 +44,14 @@ public AnswerInputType getAnswerInputType() { public java.util.List getAnswerOptions() { return this.backingStore.get("answerOptions"); } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the custom question was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * Gets the displayName property value. The question. * @return a {@link String} @@ -60,9 +69,19 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("answerInputType", (n) -> { this.setAnswerInputType(n.getEnumValue(AnswerInputType::forValue)); }); deserializerMap.put("answerOptions", (n) -> { this.setAnswerOptions(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); return deserializerMap; } + /** + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the custom question was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -72,7 +91,9 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeEnumValue("answerInputType", this.getAnswerInputType()); writer.writeCollectionOfPrimitiveValues("answerOptions", this.getAnswerOptions()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); } /** * Sets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. @@ -88,6 +109,13 @@ public void setAnswerInputType(@jakarta.annotation.Nullable final AnswerInputTyp public void setAnswerOptions(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("answerOptions", value); } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the custom question was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } /** * Sets the displayName property value. The question. * @param value Value to set for the displayName property. @@ -95,4 +123,11 @@ public void setAnswerOptions(@jakarta.annotation.Nullable final java.util.List} */ @jakarta.annotation.Nullable public java.util.List getAddresses() { return this.backingStore.get("addresses"); } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the customer was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * Gets the displayName property value. The name of the customer. * @return a {@link String} @@ -60,13 +69,23 @@ public String getEmailAddress() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("addresses", (n) -> { this.setAddresses(n.getCollectionOfObjectValues(PhysicalAddress::createFromDiscriminatorValue)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("emailAddress", (n) -> { this.setEmailAddress(n.getStringValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("phones", (n) -> { this.setPhones(n.getCollectionOfObjectValues(Phone::createFromDiscriminatorValue)); }); return deserializerMap; } /** - * Gets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the customer was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } + /** + * Gets the phones property value. Phone numbers associated with the customer, including home, business, and mobile numbers. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -81,17 +100,26 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeCollectionOfObjectValues("addresses", this.getAddresses()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("emailAddress", this.getEmailAddress()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); writer.writeCollectionOfObjectValues("phones", this.getPhones()); } /** - * Sets the addresses property value. Addresses associated with the customer. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others. + * Sets the addresses property value. Addresses associated with the customer. The attribute type of physicalAddress isn't supported in v1.0. Internally we map the addresses to the type others. * @param value Value to set for the addresses property. */ public void setAddresses(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("addresses", value); } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the customer was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } /** * Sets the displayName property value. The name of the customer. * @param value Value to set for the displayName property. @@ -107,7 +135,14 @@ public void setEmailAddress(@jakarta.annotation.Nullable final String value) { this.backingStore.set("emailAddress", value); } /** - * Sets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. + * Sets the lastUpdatedDateTime property value. The date, time, and time zone when the customer was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastUpdatedDateTime property. + */ + public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastUpdatedDateTime", value); + } + /** + * Sets the phones property value. Phone numbers associated with the customer, including home, business, and mobile numbers. * @param value Value to set for the phones property. */ public void setPhones(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingPageAccessControl.java b/src/main/java/com/microsoft/graph/generated/models/BookingPageAccessControl.java new file mode 100644 index 00000000000..a3b594d96d9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BookingPageAccessControl.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum BookingPageAccessControl implements ValuedEnum { + Unrestricted("unrestricted"), + RestrictedToOrganization("restrictedToOrganization"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + BookingPageAccessControl(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static BookingPageAccessControl forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "unrestricted": return Unrestricted; + case "restrictedToOrganization": return RestrictedToOrganization; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingPageSettings.java b/src/main/java/com/microsoft/graph/generated/models/BookingPageSettings.java new file mode 100644 index 00000000000..27b9e2951a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BookingPageSettings.java @@ -0,0 +1,294 @@ +package com.microsoft.graph.models; + +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 BookingPageSettings implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link BookingPageSettings} and sets the default values. + */ + public BookingPageSettings() { + 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 BookingPageSettings} + */ + @jakarta.annotation.Nonnull + public static BookingPageSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new BookingPageSettings(); + } + /** + * Gets the accessControl property value. The accessControl property + * @return a {@link BookingPageAccessControl} + */ + @jakarta.annotation.Nullable + public BookingPageAccessControl getAccessControl() { + return this.backingStore.get("accessControl"); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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; + } + /** + * Gets the bookingPageColorCode property value. Custom color for the booking page. The value should be in Hex format. For example, #123456. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBookingPageColorCode() { + return this.backingStore.get("bookingPageColorCode"); + } + /** + * Gets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBusinessTimeZone() { + return this.backingStore.get("businessTimeZone"); + } + /** + * Gets the customerConsentMessage property value. The personal data collection and usage consent message in the booking page. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCustomerConsentMessage() { + return this.backingStore.get("customerConsentMessage"); + } + /** + * Gets the enforceOneTimePassword property value. Determines whether the one-time password is required to create an appointment. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getEnforceOneTimePassword() { + return this.backingStore.get("enforceOneTimePassword"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(12); + deserializerMap.put("accessControl", (n) -> { this.setAccessControl(n.getEnumValue(BookingPageAccessControl::forValue)); }); + deserializerMap.put("bookingPageColorCode", (n) -> { this.setBookingPageColorCode(n.getStringValue()); }); + deserializerMap.put("businessTimeZone", (n) -> { this.setBusinessTimeZone(n.getStringValue()); }); + deserializerMap.put("customerConsentMessage", (n) -> { this.setCustomerConsentMessage(n.getStringValue()); }); + deserializerMap.put("enforceOneTimePassword", (n) -> { this.setEnforceOneTimePassword(n.getBooleanValue()); }); + deserializerMap.put("isBusinessLogoDisplayEnabled", (n) -> { this.setIsBusinessLogoDisplayEnabled(n.getBooleanValue()); }); + deserializerMap.put("isCustomerConsentEnabled", (n) -> { this.setIsCustomerConsentEnabled(n.getBooleanValue()); }); + deserializerMap.put("isSearchEngineIndexabilityDisabled", (n) -> { this.setIsSearchEngineIndexabilityDisabled(n.getBooleanValue()); }); + deserializerMap.put("isTimeSlotTimeZoneSetToBusinessTimeZone", (n) -> { this.setIsTimeSlotTimeZoneSetToBusinessTimeZone(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("privacyPolicyWebUrl", (n) -> { this.setPrivacyPolicyWebUrl(n.getStringValue()); }); + deserializerMap.put("termsAndConditionsWebUrl", (n) -> { this.setTermsAndConditionsWebUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isBusinessLogoDisplayEnabled property value. Indicates whether the business logo is displayed on the booking page. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsBusinessLogoDisplayEnabled() { + return this.backingStore.get("isBusinessLogoDisplayEnabled"); + } + /** + * Gets the isCustomerConsentEnabled property value. Enables personal data collection and the usage consent toggle on the booking page. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsCustomerConsentEnabled() { + return this.backingStore.get("isCustomerConsentEnabled"); + } + /** + * Gets the isSearchEngineIndexabilityDisabled property value. Indicates whether web crawlers index this page. The defaults value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSearchEngineIndexabilityDisabled() { + return this.backingStore.get("isSearchEngineIndexabilityDisabled"); + } + /** + * Gets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. Indicates whether the time zone of the time slot is set to the time zone of the business. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsTimeSlotTimeZoneSetToBusinessTimeZone() { + return this.backingStore.get("isTimeSlotTimeZoneSetToBusinessTimeZone"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the privacyPolicyWebUrl property value. URL of a webpage that provides the terms and conditions of the business. If a privacy policy isn't included, the following text appears on the booking page as default: 'The policies and practices of {bookingbusinessname} apply to the use of your data.' + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPrivacyPolicyWebUrl() { + return this.backingStore.get("privacyPolicyWebUrl"); + } + /** + * Gets the termsAndConditionsWebUrl property value. URL of a webpage that provides the terms and conditions of the business. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTermsAndConditionsWebUrl() { + return this.backingStore.get("termsAndConditionsWebUrl"); + } + /** + * 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.writeEnumValue("accessControl", this.getAccessControl()); + writer.writeStringValue("bookingPageColorCode", this.getBookingPageColorCode()); + writer.writeStringValue("businessTimeZone", this.getBusinessTimeZone()); + writer.writeStringValue("customerConsentMessage", this.getCustomerConsentMessage()); + writer.writeBooleanValue("enforceOneTimePassword", this.getEnforceOneTimePassword()); + writer.writeBooleanValue("isBusinessLogoDisplayEnabled", this.getIsBusinessLogoDisplayEnabled()); + writer.writeBooleanValue("isCustomerConsentEnabled", this.getIsCustomerConsentEnabled()); + writer.writeBooleanValue("isSearchEngineIndexabilityDisabled", this.getIsSearchEngineIndexabilityDisabled()); + writer.writeBooleanValue("isTimeSlotTimeZoneSetToBusinessTimeZone", this.getIsTimeSlotTimeZoneSetToBusinessTimeZone()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("privacyPolicyWebUrl", this.getPrivacyPolicyWebUrl()); + writer.writeStringValue("termsAndConditionsWebUrl", this.getTermsAndConditionsWebUrl()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the accessControl property value. The accessControl property + * @param value Value to set for the accessControl property. + */ + public void setAccessControl(@jakarta.annotation.Nullable final BookingPageAccessControl value) { + this.backingStore.set("accessControl", value); + } + /** + * 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 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 bookingPageColorCode property value. Custom color for the booking page. The value should be in Hex format. For example, #123456. + * @param value Value to set for the bookingPageColorCode property. + */ + public void setBookingPageColorCode(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("bookingPageColorCode", value); + } + /** + * Sets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone. + * @param value Value to set for the businessTimeZone property. + */ + public void setBusinessTimeZone(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("businessTimeZone", value); + } + /** + * Sets the customerConsentMessage property value. The personal data collection and usage consent message in the booking page. + * @param value Value to set for the customerConsentMessage property. + */ + public void setCustomerConsentMessage(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("customerConsentMessage", value); + } + /** + * Sets the enforceOneTimePassword property value. Determines whether the one-time password is required to create an appointment. The default value is false. + * @param value Value to set for the enforceOneTimePassword property. + */ + public void setEnforceOneTimePassword(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("enforceOneTimePassword", value); + } + /** + * Sets the isBusinessLogoDisplayEnabled property value. Indicates whether the business logo is displayed on the booking page. The default value is false. + * @param value Value to set for the isBusinessLogoDisplayEnabled property. + */ + public void setIsBusinessLogoDisplayEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isBusinessLogoDisplayEnabled", value); + } + /** + * Sets the isCustomerConsentEnabled property value. Enables personal data collection and the usage consent toggle on the booking page. The default value is false. + * @param value Value to set for the isCustomerConsentEnabled property. + */ + public void setIsCustomerConsentEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isCustomerConsentEnabled", value); + } + /** + * Sets the isSearchEngineIndexabilityDisabled property value. Indicates whether web crawlers index this page. The defaults value is false. + * @param value Value to set for the isSearchEngineIndexabilityDisabled property. + */ + public void setIsSearchEngineIndexabilityDisabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSearchEngineIndexabilityDisabled", value); + } + /** + * Sets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. Indicates whether the time zone of the time slot is set to the time zone of the business. The default value is false. + * @param value Value to set for the isTimeSlotTimeZoneSetToBusinessTimeZone property. + */ + public void setIsTimeSlotTimeZoneSetToBusinessTimeZone(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isTimeSlotTimeZoneSetToBusinessTimeZone", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the privacyPolicyWebUrl property value. URL of a webpage that provides the terms and conditions of the business. If a privacy policy isn't included, the following text appears on the booking page as default: 'The policies and practices of {bookingbusinessname} apply to the use of your data.' + * @param value Value to set for the privacyPolicyWebUrl property. + */ + public void setPrivacyPolicyWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("privacyPolicyWebUrl", value); + } + /** + * Sets the termsAndConditionsWebUrl property value. URL of a webpage that provides the terms and conditions of the business. + * @param value Value to set for the termsAndConditionsWebUrl property. + */ + public void setTermsAndConditionsWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("termsAndConditionsWebUrl", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingSchedulingPolicy.java b/src/main/java/com/microsoft/graph/generated/models/BookingSchedulingPolicy.java index 47576d3a0e9..36305a56f87 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BookingSchedulingPolicy.java +++ b/src/main/java/com/microsoft/graph/generated/models/BookingSchedulingPolicy.java @@ -52,7 +52,7 @@ public Map getAdditionalData() { return value; } /** - * Gets the allowStaffSelection property value. True if to allow customers to choose a specific person for the booking. + * Gets the allowStaffSelection property value. True to allow customers to choose a specific person for the booking. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -67,14 +67,25 @@ public Boolean getAllowStaffSelection() { public BackingStore getBackingStore() { return this.backingStore; } + /** + * Gets the customAvailabilities property value. Custom availability of the service in a given time frame. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getCustomAvailabilities() { + return this.backingStore.get("customAvailabilities"); + } /** * The deserialization information for the current model * @return a {@link Map>} */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); + final HashMap> deserializerMap = new HashMap>(9); deserializerMap.put("allowStaffSelection", (n) -> { this.setAllowStaffSelection(n.getBooleanValue()); }); + deserializerMap.put("customAvailabilities", (n) -> { this.setCustomAvailabilities(n.getCollectionOfObjectValues(BookingsAvailabilityWindow::createFromDiscriminatorValue)); }); + deserializerMap.put("generalAvailability", (n) -> { this.setGeneralAvailability(n.getObjectValue(BookingsAvailability::createFromDiscriminatorValue)); }); + deserializerMap.put("isMeetingInviteToCustomersEnabled", (n) -> { this.setIsMeetingInviteToCustomersEnabled(n.getBooleanValue()); }); deserializerMap.put("maximumAdvance", (n) -> { this.setMaximumAdvance(n.getPeriodAndDurationValue()); }); deserializerMap.put("minimumLeadTime", (n) -> { this.setMinimumLeadTime(n.getPeriodAndDurationValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); @@ -82,6 +93,22 @@ public Map> getFieldDeserializers deserializerMap.put("timeSlotInterval", (n) -> { this.setTimeSlotInterval(n.getPeriodAndDurationValue()); }); return deserializerMap; } + /** + * Gets the generalAvailability property value. General availability of the service defined by the scheduling policy. + * @return a {@link BookingsAvailability} + */ + @jakarta.annotation.Nullable + public BookingsAvailability getGeneralAvailability() { + return this.backingStore.get("generalAvailability"); + } + /** + * Gets the isMeetingInviteToCustomersEnabled property value. Indicates whether the meeting invite is sent to the customers. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsMeetingInviteToCustomersEnabled() { + return this.backingStore.get("isMeetingInviteToCustomersEnabled"); + } /** * Gets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. * @return a {@link PeriodAndDuration} @@ -129,6 +156,9 @@ public PeriodAndDuration getTimeSlotInterval() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeBooleanValue("allowStaffSelection", this.getAllowStaffSelection()); + writer.writeCollectionOfObjectValues("customAvailabilities", this.getCustomAvailabilities()); + writer.writeObjectValue("generalAvailability", this.getGeneralAvailability()); + writer.writeBooleanValue("isMeetingInviteToCustomersEnabled", this.getIsMeetingInviteToCustomersEnabled()); writer.writePeriodAndDurationValue("maximumAdvance", this.getMaximumAdvance()); writer.writePeriodAndDurationValue("minimumLeadTime", this.getMinimumLeadTime()); writer.writeStringValue("@odata.type", this.getOdataType()); @@ -144,7 +174,7 @@ public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("customAvailabilities", value); + } + /** + * Sets the generalAvailability property value. General availability of the service defined by the scheduling policy. + * @param value Value to set for the generalAvailability property. + */ + public void setGeneralAvailability(@jakarta.annotation.Nullable final BookingsAvailability value) { + this.backingStore.set("generalAvailability", value); + } + /** + * Sets the isMeetingInviteToCustomersEnabled property value. Indicates whether the meeting invite is sent to the customers. The default value is false. + * @param value Value to set for the isMeetingInviteToCustomersEnabled property. + */ + public void setIsMeetingInviteToCustomersEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isMeetingInviteToCustomersEnabled", value); + } /** * Sets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. * @param value Value to set for the maximumAdvance property. diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingService.java b/src/main/java/com/microsoft/graph/generated/models/BookingService.java index be5f85592db..b60a4801bf0 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BookingService.java +++ b/src/main/java/com/microsoft/graph/generated/models/BookingService.java @@ -4,6 +4,7 @@ import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -36,6 +37,14 @@ public static BookingService createFromDiscriminatorValue(@jakarta.annotation.No public String getAdditionalInformation() { return this.backingStore.get("additionalInformation"); } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the service was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * Gets the customQuestions property value. Contains the set of custom questions associated with a particular service. * @return a {@link java.util.List} @@ -108,6 +117,7 @@ public String getDisplayName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("additionalInformation", (n) -> { this.setAdditionalInformation(n.getStringValue()); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("customQuestions", (n) -> { this.setCustomQuestions(n.getCollectionOfObjectValues(BookingQuestionAssignment::createFromDiscriminatorValue)); }); deserializerMap.put("defaultDuration", (n) -> { this.setDefaultDuration(n.getPeriodAndDurationValue()); }); deserializerMap.put("defaultLocation", (n) -> { this.setDefaultLocation(n.getObjectValue(Location::createFromDiscriminatorValue)); }); @@ -117,9 +127,11 @@ public Map> getFieldDeserializers deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("isAnonymousJoinEnabled", (n) -> { this.setIsAnonymousJoinEnabled(n.getBooleanValue()); }); + deserializerMap.put("isCustomerAllowedToManageBooking", (n) -> { this.setIsCustomerAllowedToManageBooking(n.getBooleanValue()); }); deserializerMap.put("isHiddenFromCustomers", (n) -> { this.setIsHiddenFromCustomers(n.getBooleanValue()); }); deserializerMap.put("isLocationOnline", (n) -> { this.setIsLocationOnline(n.getBooleanValue()); }); deserializerMap.put("languageTag", (n) -> { this.setLanguageTag(n.getStringValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("maximumAttendeesCount", (n) -> { this.setMaximumAttendeesCount(n.getIntegerValue()); }); deserializerMap.put("notes", (n) -> { this.setNotes(n.getStringValue()); }); deserializerMap.put("postBuffer", (n) -> { this.setPostBuffer(n.getPeriodAndDurationValue()); }); @@ -131,7 +143,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isAnonymousJoinEnabled property value. True if the URL to join the appointment anonymously (anonymousJoinWebUrl) will be generated for the appointment booked for this service. + * Gets the isAnonymousJoinEnabled property value. Indicates if an anonymousJoinWebUrl(webrtcUrl) is generated for the appointment booked for this service. The default value is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -139,7 +151,15 @@ public Boolean getIsAnonymousJoinEnabled() { return this.backingStore.get("isAnonymousJoinEnabled"); } /** - * Gets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. + * Gets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsCustomerAllowedToManageBooking() { + return this.backingStore.get("isCustomerAllowedToManageBooking"); + } + /** + * Gets the isHiddenFromCustomers property value. True indicates that this service isn't available to customers for booking. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -147,7 +167,7 @@ public Boolean getIsHiddenFromCustomers() { return this.backingStore.get("isHiddenFromCustomers"); } /** - * Gets the isLocationOnline property value. True indicates that the appointments for the service will be held online. Default value is false. + * Gets the isLocationOnline property value. Indicates that the appointments for the service are held online. The default value is false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -162,6 +182,14 @@ public Boolean getIsLocationOnline() { public String getLanguageTag() { return this.backingStore.get("languageTag"); } + /** + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the service was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } /** * Gets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. * @return a {@link Integer} @@ -234,6 +262,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("additionalInformation", this.getAdditionalInformation()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeCollectionOfObjectValues("customQuestions", this.getCustomQuestions()); writer.writePeriodAndDurationValue("defaultDuration", this.getDefaultDuration()); writer.writeObjectValue("defaultLocation", this.getDefaultLocation()); @@ -243,9 +272,11 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("description", this.getDescription()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeBooleanValue("isAnonymousJoinEnabled", this.getIsAnonymousJoinEnabled()); + writer.writeBooleanValue("isCustomerAllowedToManageBooking", this.getIsCustomerAllowedToManageBooking()); writer.writeBooleanValue("isHiddenFromCustomers", this.getIsHiddenFromCustomers()); writer.writeBooleanValue("isLocationOnline", this.getIsLocationOnline()); writer.writeStringValue("languageTag", this.getLanguageTag()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); writer.writeIntegerValue("maximumAttendeesCount", this.getMaximumAttendeesCount()); writer.writeStringValue("notes", this.getNotes()); writer.writePeriodAndDurationValue("postBuffer", this.getPostBuffer()); @@ -261,6 +292,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setAdditionalInformation(@jakarta.annotation.Nullable final String value) { this.backingStore.set("additionalInformation", value); } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the service was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } /** * Sets the customQuestions property value. Contains the set of custom questions associated with a particular service. * @param value Value to set for the customQuestions property. @@ -318,21 +356,28 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the isAnonymousJoinEnabled property value. True if the URL to join the appointment anonymously (anonymousJoinWebUrl) will be generated for the appointment booked for this service. + * Sets the isAnonymousJoinEnabled property value. Indicates if an anonymousJoinWebUrl(webrtcUrl) is generated for the appointment booked for this service. The default value is false. * @param value Value to set for the isAnonymousJoinEnabled property. */ public void setIsAnonymousJoinEnabled(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isAnonymousJoinEnabled", value); } /** - * Sets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. + * Sets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. + * @param value Value to set for the isCustomerAllowedToManageBooking property. + */ + public void setIsCustomerAllowedToManageBooking(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isCustomerAllowedToManageBooking", value); + } + /** + * Sets the isHiddenFromCustomers property value. True indicates that this service isn't available to customers for booking. * @param value Value to set for the isHiddenFromCustomers property. */ public void setIsHiddenFromCustomers(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isHiddenFromCustomers", value); } /** - * Sets the isLocationOnline property value. True indicates that the appointments for the service will be held online. Default value is false. + * Sets the isLocationOnline property value. Indicates that the appointments for the service are held online. The default value is false. * @param value Value to set for the isLocationOnline property. */ public void setIsLocationOnline(@jakarta.annotation.Nullable final Boolean value) { @@ -345,6 +390,13 @@ public void setIsLocationOnline(@jakarta.annotation.Nullable final Boolean value public void setLanguageTag(@jakarta.annotation.Nullable final String value) { this.backingStore.set("languageTag", value); } + /** + * Sets the lastUpdatedDateTime property value. The date, time, and time zone when the service was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastUpdatedDateTime property. + */ + public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastUpdatedDateTime", value); + } /** * Sets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. * @param value Value to set for the maximumAttendeesCount property. diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingStaffMember.java b/src/main/java/com/microsoft/graph/generated/models/BookingStaffMember.java index e9a20741ab2..c7994c700ae 100644 --- a/src/main/java/com/microsoft/graph/generated/models/BookingStaffMember.java +++ b/src/main/java/com/microsoft/graph/generated/models/BookingStaffMember.java @@ -3,6 +3,7 @@ import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -36,6 +37,14 @@ public static BookingStaffMember createFromDiscriminatorValue(@jakarta.annotatio public Boolean getAvailabilityIsAffectedByPersonalCalendar() { return this.backingStore.get("availabilityIsAffectedByPersonalCalendar"); } + /** + * Gets the createdDateTime property value. The date, time, and time zone when the staff member was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * Gets the displayName property value. The name of the staff member, as displayed to customers. Required. * @return a {@link String} @@ -45,7 +54,7 @@ public String getDisplayName() { return this.backingStore.get("displayName"); } /** - * Gets the emailAddress property value. The email address of the staff member. This can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required. + * Gets the emailAddress property value. The email address of the staff member. This email address can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -60,9 +69,11 @@ public String getEmailAddress() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("availabilityIsAffectedByPersonalCalendar", (n) -> { this.setAvailabilityIsAffectedByPersonalCalendar(n.getBooleanValue()); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("emailAddress", (n) -> { this.setEmailAddress(n.getStringValue()); }); deserializerMap.put("isEmailNotificationEnabled", (n) -> { this.setIsEmailNotificationEnabled(n.getBooleanValue()); }); + deserializerMap.put("lastUpdatedDateTime", (n) -> { this.setLastUpdatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("membershipStatus", (n) -> { this.setMembershipStatus(n.getEnumValue(BookingStaffMembershipStatus::forValue)); }); deserializerMap.put("role", (n) -> { this.setRole(n.getEnumValue(BookingStaffRole::forValue)); }); deserializerMap.put("timeZone", (n) -> { this.setTimeZone(n.getStringValue()); }); @@ -71,13 +82,21 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isEmailNotificationEnabled property value. True indicates that a staff member will be notified via email when a booking assigned to them is created or changed. + * Gets the isEmailNotificationEnabled property value. Indicates that a staff member is notified via email when a booking assigned to them is created or changed. The default value is true. * @return a {@link Boolean} */ @jakarta.annotation.Nullable public Boolean getIsEmailNotificationEnabled() { return this.backingStore.get("isEmailNotificationEnabled"); } + /** + * Gets the lastUpdatedDateTime property value. The date, time, and time zone when the staff member was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastUpdatedDateTime() { + return this.backingStore.get("lastUpdatedDateTime"); + } /** * Gets the membershipStatus property value. The membershipStatus property * @return a {@link BookingStaffMembershipStatus} @@ -111,7 +130,7 @@ public Boolean getUseBusinessHours() { return this.backingStore.get("useBusinessHours"); } /** - * Gets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they are initialized to be the same as the businessHours property of the business. + * Gets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they're initialized to be the same as the businessHours property of the business. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -126,9 +145,11 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeBooleanValue("availabilityIsAffectedByPersonalCalendar", this.getAvailabilityIsAffectedByPersonalCalendar()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("emailAddress", this.getEmailAddress()); writer.writeBooleanValue("isEmailNotificationEnabled", this.getIsEmailNotificationEnabled()); + writer.writeOffsetDateTimeValue("lastUpdatedDateTime", this.getLastUpdatedDateTime()); writer.writeEnumValue("membershipStatus", this.getMembershipStatus()); writer.writeEnumValue("role", this.getRole()); writer.writeStringValue("timeZone", this.getTimeZone()); @@ -142,6 +163,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setAvailabilityIsAffectedByPersonalCalendar(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("availabilityIsAffectedByPersonalCalendar", value); } + /** + * Sets the createdDateTime property value. The date, time, and time zone when the staff member was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); + } /** * Sets the displayName property value. The name of the staff member, as displayed to customers. Required. * @param value Value to set for the displayName property. @@ -150,19 +178,26 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the emailAddress property value. The email address of the staff member. This can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required. + * Sets the emailAddress property value. The email address of the staff member. This email address can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required. * @param value Value to set for the emailAddress property. */ public void setEmailAddress(@jakarta.annotation.Nullable final String value) { this.backingStore.set("emailAddress", value); } /** - * Sets the isEmailNotificationEnabled property value. True indicates that a staff member will be notified via email when a booking assigned to them is created or changed. + * Sets the isEmailNotificationEnabled property value. Indicates that a staff member is notified via email when a booking assigned to them is created or changed. The default value is true. * @param value Value to set for the isEmailNotificationEnabled property. */ public void setIsEmailNotificationEnabled(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isEmailNotificationEnabled", value); } + /** + * Sets the lastUpdatedDateTime property value. The date, time, and time zone when the staff member was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the lastUpdatedDateTime property. + */ + public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastUpdatedDateTime", value); + } /** * Sets the membershipStatus property value. The membershipStatus property * @param value Value to set for the membershipStatus property. @@ -192,7 +227,7 @@ public void setUseBusinessHours(@jakarta.annotation.Nullable final Boolean value this.backingStore.set("useBusinessHours", value); } /** - * Sets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they are initialized to be the same as the businessHours property of the business. + * Sets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they're initialized to be the same as the businessHours property of the business. * @param value Value to set for the workingHours property. */ public void setWorkingHours(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingsAvailability.java b/src/main/java/com/microsoft/graph/generated/models/BookingsAvailability.java new file mode 100644 index 00000000000..c4476f1e2a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BookingsAvailability.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.models; + +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 BookingsAvailability implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link BookingsAvailability} and sets the default values. + */ + public BookingsAvailability() { + 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 BookingsAvailability} + */ + @jakarta.annotation.Nonnull + public static BookingsAvailability createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.bookingsAvailabilityWindow": return new BookingsAvailabilityWindow(); + } + } + return new BookingsAvailability(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the availabilityType property value. The availabilityType property + * @return a {@link BookingsServiceAvailabilityType} + */ + @jakarta.annotation.Nullable + public BookingsServiceAvailabilityType getAvailabilityType() { + return this.backingStore.get("availabilityType"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the businessHours property value. The hours of operation in a week. The business hours value is set to null if the availability type isn't customWeeklyHours. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getBusinessHours() { + return this.backingStore.get("businessHours"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("availabilityType", (n) -> { this.setAvailabilityType(n.getEnumValue(BookingsServiceAvailabilityType::forValue)); }); + deserializerMap.put("businessHours", (n) -> { this.setBusinessHours(n.getCollectionOfObjectValues(BookingWorkHours::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * 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.writeEnumValue("availabilityType", this.getAvailabilityType()); + writer.writeCollectionOfObjectValues("businessHours", this.getBusinessHours()); + writer.writeStringValue("@odata.type", this.getOdataType()); + 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 value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the availabilityType property value. The availabilityType property + * @param value Value to set for the availabilityType property. + */ + public void setAvailabilityType(@jakarta.annotation.Nullable final BookingsServiceAvailabilityType value) { + this.backingStore.set("availabilityType", 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 businessHours property value. The hours of operation in a week. The business hours value is set to null if the availability type isn't customWeeklyHours. + * @param value Value to set for the businessHours property. + */ + public void setBusinessHours(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("businessHours", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingsAvailabilityWindow.java b/src/main/java/com/microsoft/graph/generated/models/BookingsAvailabilityWindow.java new file mode 100644 index 00000000000..935772b0503 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BookingsAvailabilityWindow.java @@ -0,0 +1,80 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.LocalDate; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class BookingsAvailabilityWindow extends BookingsAvailability implements Parsable { + /** + * Instantiates a new {@link BookingsAvailabilityWindow} and sets the default values. + */ + public BookingsAvailabilityWindow() { + super(); + this.setOdataType("#microsoft.graph.bookingsAvailabilityWindow"); + } + /** + * 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 BookingsAvailabilityWindow} + */ + @jakarta.annotation.Nonnull + public static BookingsAvailabilityWindow createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new BookingsAvailabilityWindow(); + } + /** + * Gets the endDate property value. End date of the availability window. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getEndDate() { + return this.backingStore.get("endDate"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getLocalDateValue()); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getLocalDateValue()); }); + return deserializerMap; + } + /** + * Gets the startDate property value. Start date of the availability window. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getStartDate() { + return this.backingStore.get("startDate"); + } + /** + * 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.writeLocalDateValue("endDate", this.getEndDate()); + writer.writeLocalDateValue("startDate", this.getStartDate()); + } + /** + * Sets the endDate property value. End date of the availability window. + * @param value Value to set for the endDate property. + */ + public void setEndDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("endDate", value); + } + /** + * Sets the startDate property value. Start date of the availability window. + * @param value Value to set for the startDate property. + */ + public void setStartDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("startDate", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/BookingsServiceAvailabilityType.java b/src/main/java/com/microsoft/graph/generated/models/BookingsServiceAvailabilityType.java new file mode 100644 index 00000000000..c9dab6a9951 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/BookingsServiceAvailabilityType.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum BookingsServiceAvailabilityType implements ValuedEnum { + BookWhenStaffAreFree("bookWhenStaffAreFree"), + NotBookable("notBookable"), + CustomWeeklyHours("customWeeklyHours"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + BookingsServiceAvailabilityType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static BookingsServiceAvailabilityType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "bookWhenStaffAreFree": return BookWhenStaffAreFree; + case "notBookable": return NotBookable; + case "customWeeklyHours": return CustomWeeklyHours; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CallTranscript.java b/src/main/java/com/microsoft/graph/generated/models/CallTranscript.java index afdfb8577e5..aa5268ef11e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CallTranscript.java +++ b/src/main/java/com/microsoft/graph/generated/models/CallTranscript.java @@ -34,7 +34,7 @@ public byte[] getContent() { return this.backingStore.get("content"); } /** - * Gets the createdDateTime property value. Date and time at which the transcript was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * Gets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -110,7 +110,7 @@ public void setContent(@jakarta.annotation.Nullable final byte[] value) { this.backingStore.set("content", value); } /** - * Sets the createdDateTime property value. Date and time at which the transcript was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * Sets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Channel.java b/src/main/java/com/microsoft/graph/generated/models/Channel.java index 0b896c31e1e..ecfed4ef8e6 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Channel.java +++ b/src/main/java/com/microsoft/graph/generated/models/Channel.java @@ -69,6 +69,7 @@ public Map> getFieldDeserializers deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); deserializerMap.put("filesFolder", (n) -> { this.setFilesFolder(n.getObjectValue(DriveItem::createFromDiscriminatorValue)); }); + deserializerMap.put("isArchived", (n) -> { this.setIsArchived(n.getBooleanValue()); }); deserializerMap.put("isFavoriteByDefault", (n) -> { this.setIsFavoriteByDefault(n.getBooleanValue()); }); deserializerMap.put("members", (n) -> { this.setMembers(n.getCollectionOfObjectValues(ConversationMember::createFromDiscriminatorValue)); }); deserializerMap.put("membershipType", (n) -> { this.setMembershipType(n.getEnumValue(ChannelMembershipType::forValue)); }); @@ -88,6 +89,14 @@ public Map> getFieldDeserializers public DriveItem getFilesFolder() { return this.backingStore.get("filesFolder"); } + /** + * Gets the isArchived property value. Indicates whether the channel is archived. Read-only. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsArchived() { + return this.backingStore.get("isArchived"); + } /** * Gets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. * @return a {@link Boolean} @@ -172,6 +181,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("email", this.getEmail()); writer.writeObjectValue("filesFolder", this.getFilesFolder()); + writer.writeBooleanValue("isArchived", this.getIsArchived()); writer.writeBooleanValue("isFavoriteByDefault", this.getIsFavoriteByDefault()); writer.writeCollectionOfObjectValues("members", this.getMembers()); writer.writeEnumValue("membershipType", this.getMembershipType()); @@ -217,6 +227,13 @@ public void setEmail(@jakarta.annotation.Nullable final String value) { public void setFilesFolder(@jakarta.annotation.Nullable final DriveItem value) { this.backingStore.set("filesFolder", value); } + /** + * Sets the isArchived property value. Indicates whether the channel is archived. Read-only. + * @param value Value to set for the isArchived property. + */ + public void setIsArchived(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isArchived", value); + } /** * Sets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. * @param value Value to set for the isFavoriteByDefault property. diff --git a/src/main/java/com/microsoft/graph/generated/models/ClickSource.java b/src/main/java/com/microsoft/graph/generated/models/ClickSource.java new file mode 100644 index 00000000000..79da4036919 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ClickSource.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ClickSource implements ValuedEnum { + Unknown("unknown"), + QrCode("qrCode"), + PhishingUrl("phishingUrl"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ClickSource(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ClickSource forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "unknown": return Unknown; + case "qrCode": return QrCode; + case "phishingUrl": return PhishingUrl; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ColumnDefinition.java b/src/main/java/com/microsoft/graph/generated/models/ColumnDefinition.java index 238180003ad..0d0ae471bb7 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ColumnDefinition.java +++ b/src/main/java/com/microsoft/graph/generated/models/ColumnDefinition.java @@ -25,7 +25,7 @@ public static ColumnDefinition createFromDiscriminatorValue(@jakarta.annotation. return new ColumnDefinition(); } /** - * Gets the boolean property value. This column stores boolean values. + * Gets the boolean property value. This column stores Boolean values. * @return a {@link BooleanColumn} */ @jakarta.annotation.Nullable @@ -362,7 +362,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("validation", this.getValidation()); } /** - * Sets the boolean property value. This column stores boolean values. + * Sets the boolean property value. This column stores Boolean values. * @param value Value to set for the boolean property. */ public void setBoolean(@jakarta.annotation.Nullable final BooleanColumn value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CompanySubscription.java b/src/main/java/com/microsoft/graph/generated/models/CompanySubscription.java index ef30aa98767..cc6a50f3006 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CompanySubscription.java +++ b/src/main/java/com/microsoft/graph/generated/models/CompanySubscription.java @@ -26,7 +26,7 @@ public static CompanySubscription createFromDiscriminatorValue(@jakarta.annotati return new CompanySubscription(); } /** - * Gets the commerceSubscriptionId property value. The commerceSubscriptionId property + * Gets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public String getCommerceSubscriptionId() { return this.backingStore.get("commerceSubscriptionId"); } /** - * Gets the createdDateTime property value. The createdDateTime property + * Gets the createdDateTime property value. The date and time when this subscription was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isTrial property value. The isTrial property + * Gets the isTrial property value. Whether the subscription is a free trial or purchased. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -71,7 +71,7 @@ public Boolean getIsTrial() { return this.backingStore.get("isTrial"); } /** - * Gets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * Gets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -79,7 +79,7 @@ public OffsetDateTime getNextLifecycleDateTime() { return this.backingStore.get("nextLifecycleDateTime"); } /** - * Gets the ownerId property value. The ownerId property + * Gets the ownerId property value. The object ID of the account admin. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -87,7 +87,7 @@ public String getOwnerId() { return this.backingStore.get("ownerId"); } /** - * Gets the ownerTenantId property value. The ownerTenantId property + * Gets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -95,7 +95,7 @@ public String getOwnerTenantId() { return this.backingStore.get("ownerTenantId"); } /** - * Gets the ownerType property value. The ownerType property + * Gets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -103,7 +103,7 @@ public String getOwnerType() { return this.backingStore.get("ownerType"); } /** - * Gets the serviceStatus property value. The serviceStatus property + * Gets the serviceStatus property value. The provisioning status of each service included in this subscription. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -111,7 +111,7 @@ public java.util.List getServiceStatus() { return this.backingStore.get("serviceStatus"); } /** - * Gets the skuId property value. The skuId property + * Gets the skuId property value. The object ID of the SKU associated with this subscription. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public String getSkuId() { return this.backingStore.get("skuId"); } /** - * Gets the skuPartNumber property value. The skuPartNumber property + * Gets the skuPartNumber property value. The SKU associated with this subscription. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -127,7 +127,7 @@ public String getSkuPartNumber() { return this.backingStore.get("skuPartNumber"); } /** - * Gets the status property value. The status property + * Gets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -135,7 +135,7 @@ public String getStatus() { return this.backingStore.get("status"); } /** - * Gets the totalLicenses property value. The totalLicenses property + * Gets the totalLicenses property value. The number of licenses included in this subscription. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -163,84 +163,84 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("totalLicenses", this.getTotalLicenses()); } /** - * Sets the commerceSubscriptionId property value. The commerceSubscriptionId property + * Sets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key. * @param value Value to set for the commerceSubscriptionId property. */ public void setCommerceSubscriptionId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("commerceSubscriptionId", value); } /** - * Sets the createdDateTime property value. The createdDateTime property + * Sets the createdDateTime property value. The date and time when this subscription was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("createdDateTime", value); } /** - * Sets the isTrial property value. The isTrial property + * Sets the isTrial property value. Whether the subscription is a free trial or purchased. * @param value Value to set for the isTrial property. */ public void setIsTrial(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isTrial", value); } /** - * Sets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * Sets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the nextLifecycleDateTime property. */ public void setNextLifecycleDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("nextLifecycleDateTime", value); } /** - * Sets the ownerId property value. The ownerId property + * Sets the ownerId property value. The object ID of the account admin. * @param value Value to set for the ownerId property. */ public void setOwnerId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("ownerId", value); } /** - * Sets the ownerTenantId property value. The ownerTenantId property + * Sets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant. * @param value Value to set for the ownerTenantId property. */ public void setOwnerTenantId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("ownerTenantId", value); } /** - * Sets the ownerType property value. The ownerType property + * Sets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'. * @param value Value to set for the ownerType property. */ public void setOwnerType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("ownerType", value); } /** - * Sets the serviceStatus property value. The serviceStatus property + * Sets the serviceStatus property value. The provisioning status of each service included in this subscription. * @param value Value to set for the serviceStatus property. */ public void setServiceStatus(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("serviceStatus", value); } /** - * Sets the skuId property value. The skuId property + * Sets the skuId property value. The object ID of the SKU associated with this subscription. * @param value Value to set for the skuId property. */ public void setSkuId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("skuId", value); } /** - * Sets the skuPartNumber property value. The skuPartNumber property + * Sets the skuPartNumber property value. The SKU associated with this subscription. * @param value Value to set for the skuPartNumber property. */ public void setSkuPartNumber(@jakarta.annotation.Nullable final String value) { this.backingStore.set("skuPartNumber", value); } /** - * Sets the status property value. The status property + * Sets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final String value) { this.backingStore.set("status", value); } /** - * Sets the totalLicenses property value. The totalLicenses property + * Sets the totalLicenses property value. The number of licenses included in this subscription. * @param value Value to set for the totalLicenses property. */ public void setTotalLicenses(@jakarta.annotation.Nullable final Integer value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessConditionSet.java b/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessConditionSet.java index 6366d5b0cb5..89b75692e4b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessConditionSet.java +++ b/src/main/java/com/microsoft/graph/generated/models/ConditionalAccessConditionSet.java @@ -110,7 +110,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the insiderRiskLevels property value. The insiderRiskLevels property + * Gets the insiderRiskLevels property value. Insider risk levels included in the policy. The possible values are: minor, moderate, elevated, unknownFutureValue. * @return a {@link EnumSet} */ @jakarta.annotation.Nullable @@ -237,7 +237,7 @@ public void setDevices(@jakarta.annotation.Nullable final ConditionalAccessDevic this.backingStore.set("devices", value); } /** - * Sets the insiderRiskLevels property value. The insiderRiskLevels property + * Sets the insiderRiskLevels property value. Insider risk levels included in the policy. The possible values are: minor, moderate, elevated, unknownFutureValue. * @param value Value to set for the insiderRiskLevels property. */ public void setInsiderRiskLevels(@jakarta.annotation.Nullable final EnumSet value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyB2BSetting.java b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyB2BSetting.java index 030a734a0f1..84ba1f9375a 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyB2BSetting.java +++ b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyB2BSetting.java @@ -32,6 +32,13 @@ public CrossTenantAccessPolicyB2BSetting() { @jakarta.annotation.Nonnull public static CrossTenantAccessPolicyB2BSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.crossTenantAccessPolicyTenantRestrictions": return new CrossTenantAccessPolicyTenantRestrictions(); + } + } return new CrossTenantAccessPolicyB2BSetting(); } /** diff --git a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationDefault.java b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationDefault.java index 3ac235119a8..93d279db247 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationDefault.java +++ b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationDefault.java @@ -79,6 +79,7 @@ public Map> getFieldDeserializers deserializerMap.put("inboundTrust", (n) -> { this.setInboundTrust(n.getObjectValue(CrossTenantAccessPolicyInboundTrust::createFromDiscriminatorValue)); }); deserializerMap.put("invitationRedemptionIdentityProviderConfiguration", (n) -> { this.setInvitationRedemptionIdentityProviderConfiguration(n.getObjectValue(DefaultInvitationRedemptionIdentityProviderConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("isServiceDefault", (n) -> { this.setIsServiceDefault(n.getBooleanValue()); }); + deserializerMap.put("tenantRestrictions", (n) -> { this.setTenantRestrictions(n.getObjectValue(CrossTenantAccessPolicyTenantRestrictions::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -105,6 +106,14 @@ public DefaultInvitationRedemptionIdentityProviderConfiguration getInvitationRed public Boolean getIsServiceDefault() { return this.backingStore.get("isServiceDefault"); } + /** + * Gets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. + * @return a {@link CrossTenantAccessPolicyTenantRestrictions} + */ + @jakarta.annotation.Nullable + public CrossTenantAccessPolicyTenantRestrictions getTenantRestrictions() { + return this.backingStore.get("tenantRestrictions"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -120,6 +129,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("inboundTrust", this.getInboundTrust()); writer.writeObjectValue("invitationRedemptionIdentityProviderConfiguration", this.getInvitationRedemptionIdentityProviderConfiguration()); writer.writeBooleanValue("isServiceDefault", this.getIsServiceDefault()); + writer.writeObjectValue("tenantRestrictions", this.getTenantRestrictions()); } /** * Sets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only. @@ -177,4 +187,11 @@ public void setInvitationRedemptionIdentityProviderConfiguration(@jakarta.annota public void setIsServiceDefault(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isServiceDefault", value); } + /** + * Sets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. + * @param value Value to set for the tenantRestrictions property. + */ + public void setTenantRestrictions(@jakarta.annotation.Nullable final CrossTenantAccessPolicyTenantRestrictions value) { + this.backingStore.set("tenantRestrictions", value); + } } diff --git a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationPartner.java b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationPartner.java index c753b072f68..68ccd943fee 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationPartner.java +++ b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyConfigurationPartner.java @@ -101,7 +101,7 @@ public BackingStore getBackingStore() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(11); + final HashMap> deserializerMap = new HashMap>(12); deserializerMap.put("automaticUserConsentSettings", (n) -> { this.setAutomaticUserConsentSettings(n.getObjectValue(InboundOutboundPolicyConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("b2bCollaborationInbound", (n) -> { this.setB2bCollaborationInbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); }); deserializerMap.put("b2bCollaborationOutbound", (n) -> { this.setB2bCollaborationOutbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); }); @@ -113,6 +113,7 @@ public Map> getFieldDeserializers deserializerMap.put("isServiceProvider", (n) -> { this.setIsServiceProvider(n.getBooleanValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("tenantId", (n) -> { this.setTenantId(n.getStringValue()); }); + deserializerMap.put("tenantRestrictions", (n) -> { this.setTenantRestrictions(n.getObjectValue(CrossTenantAccessPolicyTenantRestrictions::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -163,6 +164,14 @@ public String getOdataType() { public String getTenantId() { return this.backingStore.get("tenantId"); } + /** + * Gets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. + * @return a {@link CrossTenantAccessPolicyTenantRestrictions} + */ + @jakarta.annotation.Nullable + public CrossTenantAccessPolicyTenantRestrictions getTenantRestrictions() { + return this.backingStore.get("tenantRestrictions"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -180,6 +189,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("isServiceProvider", this.getIsServiceProvider()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeStringValue("tenantId", this.getTenantId()); + writer.writeObjectValue("tenantRestrictions", this.getTenantRestrictions()); writer.writeAdditionalData(this.getAdditionalData()); } /** @@ -274,4 +284,11 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { public void setTenantId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("tenantId", value); } + /** + * Sets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. + * @param value Value to set for the tenantRestrictions property. + */ + public void setTenantRestrictions(@jakarta.annotation.Nullable final CrossTenantAccessPolicyTenantRestrictions value) { + this.backingStore.set("tenantRestrictions", value); + } } diff --git a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTarget.java b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTarget.java index 66cff474e27..ba5925de424 100644 --- a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTarget.java +++ b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTarget.java @@ -76,7 +76,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the target property value. The unique identifier of the user, group, or application; one of the following keywords: AllUsers and AllApplications; or for targets that are applications, you may use reserved values. + * Gets the target property value. Defines the target for cross-tenant access policy settings and can have one of the following values: The unique identifier of the user, group, or application AllUsers AllApplications - Refers to any Microsoft cloud application. Office365 - Includes the applications mentioned as part of the Office 365 suite. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -125,7 +125,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the target property value. The unique identifier of the user, group, or application; one of the following keywords: AllUsers and AllApplications; or for targets that are applications, you may use reserved values. + * Sets the target property value. Defines the target for cross-tenant access policy settings and can have one of the following values: The unique identifier of the user, group, or application AllUsers AllApplications - Refers to any Microsoft cloud application. Office365 - Includes the applications mentioned as part of the Office 365 suite. * @param value Value to set for the target property. */ public void setTarget(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTenantRestrictions.java b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTenantRestrictions.java new file mode 100644 index 00000000000..0da34400c39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CrossTenantAccessPolicyTenantRestrictions.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models; + +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 CrossTenantAccessPolicyTenantRestrictions extends CrossTenantAccessPolicyB2BSetting implements Parsable { + /** + * Instantiates a new {@link CrossTenantAccessPolicyTenantRestrictions} and sets the default values. + */ + public CrossTenantAccessPolicyTenantRestrictions() { + super(); + this.setOdataType("#microsoft.graph.crossTenantAccessPolicyTenantRestrictions"); + } + /** + * 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 CrossTenantAccessPolicyTenantRestrictions} + */ + @jakarta.annotation.Nonnull + public static CrossTenantAccessPolicyTenantRestrictions createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CrossTenantAccessPolicyTenantRestrictions(); + } + /** + * Gets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. + * @return a {@link DevicesFilter} + */ + @jakarta.annotation.Nullable + public DevicesFilter getDevices() { + return this.backingStore.get("devices"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("devices", (n) -> { this.setDevices(n.getObjectValue(DevicesFilter::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * 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.writeObjectValue("devices", this.getDevices()); + } + /** + * Sets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. + * @param value Value to set for the devices property. + */ + public void setDevices(@jakarta.annotation.Nullable final DevicesFilter value) { + this.backingStore.set("devices", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/CustomAppManagementConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/CustomAppManagementConfiguration.java new file mode 100644 index 00000000000..cddc8526eb2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/CustomAppManagementConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.models; + +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 CustomAppManagementConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link CustomAppManagementConfiguration} and sets the default values. + */ + public CustomAppManagementConfiguration() { + super(); + this.setOdataType("#microsoft.graph.customAppManagementConfiguration"); + } + /** + * 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 CustomAppManagementConfiguration} + */ + @jakarta.annotation.Nonnull + public static CustomAppManagementConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CustomAppManagementConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * 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); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Device.java b/src/main/java/com/microsoft/graph/generated/models/Device.java index 0e4f03fc123..305e71695b8 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Device.java +++ b/src/main/java/com/microsoft/graph/generated/models/Device.java @@ -67,7 +67,7 @@ public String getDeviceCategory() { return this.backingStore.get("deviceCategory"); } /** - * Gets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith). + * Gets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This alternate key can be used to reference the device object. Supports $filter (eq, ne, not, startsWith). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public String getDeviceMetadata() { return this.backingStore.get("deviceMetadata"); } /** - * Gets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal. + * Gets the deviceOwnership property value. Ownership of the device. Intune sets this property. Possible values are: unknown, company, personal. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -115,7 +115,7 @@ public String getEnrollmentProfileName() { return this.backingStore.get("enrollmentProfileName"); } /** - * Gets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. + * Gets the enrollmentType property value. Enrollment type of the device. Intune sets this property. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -334,7 +334,7 @@ public java.util.List getTransitiveMemberOf() { return this.backingStore.get("transitiveMemberOf"); } /** - * Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. + * Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud-only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more information, see Introduction to device management in Microsoft Entra ID. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -419,7 +419,7 @@ public void setDeviceCategory(@jakarta.annotation.Nullable final String value) { this.backingStore.set("deviceCategory", value); } /** - * Sets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith). + * Sets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This alternate key can be used to reference the device object. Supports $filter (eq, ne, not, startsWith). * @param value Value to set for the deviceId property. */ public void setDeviceId(@jakarta.annotation.Nullable final String value) { @@ -433,7 +433,7 @@ public void setDeviceMetadata(@jakarta.annotation.Nullable final String value) { this.backingStore.set("deviceMetadata", value); } /** - * Sets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal. + * Sets the deviceOwnership property value. Ownership of the device. Intune sets this property. Possible values are: unknown, company, personal. * @param value Value to set for the deviceOwnership property. */ public void setDeviceOwnership(@jakarta.annotation.Nullable final String value) { @@ -461,7 +461,7 @@ public void setEnrollmentProfileName(@jakarta.annotation.Nullable final String v this.backingStore.set("enrollmentProfileName", value); } /** - * Sets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. + * Sets the enrollmentType property value. Enrollment type of the device. Intune sets this property. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. * @param value Value to set for the enrollmentType property. */ public void setEnrollmentType(@jakarta.annotation.Nullable final String value) { @@ -615,7 +615,7 @@ public void setTransitiveMemberOf(@jakarta.annotation.Nullable final java.util.L this.backingStore.set("transitiveMemberOf", value); } /** - * Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. + * Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud-only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more information, see Introduction to device management in Microsoft Entra ID. * @param value Value to set for the trustType property. */ public void setTrustType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/DevicesFilter.java b/src/main/java/com/microsoft/graph/generated/models/DevicesFilter.java new file mode 100644 index 00000000000..07a3380dc5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/DevicesFilter.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.models; + +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 DevicesFilter implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link DevicesFilter} and sets the default values. + */ + public DevicesFilter() { + 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 DevicesFilter} + */ + @jakarta.annotation.Nonnull + public static DevicesFilter createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new DevicesFilter(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(3); + deserializerMap.put("mode", (n) -> { this.setMode(n.getEnumValue(CrossTenantAccessPolicyTargetConfigurationAccessType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("rule", (n) -> { this.setRule(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. + * @return a {@link CrossTenantAccessPolicyTargetConfigurationAccessType} + */ + @jakarta.annotation.Nullable + public CrossTenantAccessPolicyTargetConfigurationAccessType getMode() { + return this.backingStore.get("mode"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRule() { + return this.backingStore.get("rule"); + } + /** + * 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.writeEnumValue("mode", this.getMode()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("rule", this.getRule()); + 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 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 mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. + * @param value Value to set for the mode property. + */ + public void setMode(@jakarta.annotation.Nullable final CrossTenantAccessPolicyTargetConfigurationAccessType value) { + this.backingStore.set("mode", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. + * @param value Value to set for the rule property. + */ + public void setRule(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("rule", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Directory.java b/src/main/java/com/microsoft/graph/generated/models/Directory.java index 5ca77bda990..e8b6b4239a1 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Directory.java +++ b/src/main/java/com/microsoft/graph/generated/models/Directory.java @@ -98,7 +98,7 @@ public java.util.List getOnPremisesSynchroni return this.backingStore.get("onPremisesSynchronization"); } /** - * Gets the subscriptions property value. The subscriptions property + * Gets the subscriptions property value. List of commercial subscriptions that an organization acquired. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -171,7 +171,7 @@ public void setOnPremisesSynchronization(@jakarta.annotation.Nullable final java this.backingStore.set("onPremisesSynchronization", value); } /** - * Sets the subscriptions property value. The subscriptions property + * Sets the subscriptions property value. List of commercial subscriptions that an organization acquired. * @param value Value to set for the subscriptions property. */ public void setSubscriptions(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/EducationRubric.java b/src/main/java/com/microsoft/graph/generated/models/EducationRubric.java index 90df68fbf9f..457e0083a4f 100644 --- a/src/main/java/com/microsoft/graph/generated/models/EducationRubric.java +++ b/src/main/java/com/microsoft/graph/generated/models/EducationRubric.java @@ -34,7 +34,7 @@ public IdentitySet getCreatedBy() { return this.backingStore.get("createdBy"); } /** - * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Gets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -76,7 +76,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Gets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @return a {@link EducationAssignmentGradeType} */ @jakarta.annotation.Nullable @@ -92,7 +92,7 @@ public IdentitySet getLastModifiedBy() { return this.backingStore.get("lastModifiedBy"); } /** - * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -136,7 +136,7 @@ public void setCreatedBy(@jakarta.annotation.Nullable final IdentitySet value) { this.backingStore.set("createdBy", value); } /** - * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Sets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -157,7 +157,7 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Sets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @param value Value to set for the grading property. */ public void setGrading(@jakarta.annotation.Nullable final EducationAssignmentGradeType value) { @@ -171,7 +171,7 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet val this.backingStore.set("lastModifiedBy", value); } /** - * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the lastModifiedDateTime property. */ public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Entity.java b/src/main/java/com/microsoft/graph/generated/models/Entity.java index b2836ad26ae..fb466c5ba26 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Entity.java +++ b/src/main/java/com/microsoft/graph/generated/models/Entity.java @@ -508,6 +508,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.importedWindowsAutopilotDeviceIdentityUpload": return new ImportedWindowsAutopilotDeviceIdentityUpload(); case "#microsoft.graph.inferenceClassification": return new InferenceClassification(); case "#microsoft.graph.inferenceClassificationOverride": return new InferenceClassificationOverride(); + case "#microsoft.graph.insightsSettings": return new InsightsSettings(); case "#microsoft.graph.internalDomainFederation": return new InternalDomainFederation(); case "#microsoft.graph.internetExplorerMode": return new InternetExplorerMode(); case "#microsoft.graph.invitation": return new Invitation(); @@ -534,6 +535,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.itemActivityStat": return new ItemActivityStat(); case "#microsoft.graph.itemAnalytics": return new ItemAnalytics(); case "#microsoft.graph.itemAttachment": return new ItemAttachment(); + case "#microsoft.graph.itemInsights": return new ItemInsights(); case "#microsoft.graph.itemRetentionLabel": return new ItemRetentionLabel(); case "#microsoft.graph.landingPage": return new LandingPage(); case "#microsoft.graph.landingPageDetail": return new LandingPageDetail(); @@ -667,8 +669,6 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.partners.billing.runningOperation": return new RunningOperation(); case "#microsoft.graph.partners.billing.unbilledUsage": return new UnbilledUsage(); case "#microsoft.graph.passwordAuthenticationMethod": return new PasswordAuthenticationMethod(); - case "#microsoft.graph.payload": return new Payload(); - case "#microsoft.graph.peopleAdminSettings": return new PeopleAdminSettings(); } return null; } @@ -680,6 +680,8 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull @jakarta.annotation.Nonnull private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull final String discriminatorValue) { switch (discriminatorValue) { + case "#microsoft.graph.payload": return new Payload(); + case "#microsoft.graph.peopleAdminSettings": return new PeopleAdminSettings(); case "#microsoft.graph.permission": return new Permission(); case "#microsoft.graph.permissionGrantConditionSet": return new PermissionGrantConditionSet(); case "#microsoft.graph.permissionGrantPolicy": return new PermissionGrantPolicy(); @@ -851,6 +853,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.serviceHealthIssue": return new ServiceHealthIssue(); case "#microsoft.graph.servicePrincipal": return new ServicePrincipal(); case "#microsoft.graph.servicePrincipalRiskDetection": return new ServicePrincipalRiskDetection(); + case "#microsoft.graph.serviceStorageQuotaBreakdown": return new ServiceStorageQuotaBreakdown(); case "#microsoft.graph.serviceUpdateMessage": return new ServiceUpdateMessage(); case "#microsoft.graph.settingStateDeviceSummary": return new SettingStateDeviceSummary(); case "#microsoft.graph.sharedDriveItem": return new SharedDriveItem(); @@ -879,6 +882,8 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.standardWebPart": return new StandardWebPart(); case "#microsoft.graph.startHoldMusicOperation": return new StartHoldMusicOperation(); case "#microsoft.graph.stopHoldMusicOperation": return new StopHoldMusicOperation(); + case "#microsoft.graph.storageQuotaBreakdown": return new StorageQuotaBreakdown(); + case "#microsoft.graph.storageSettings": return new StorageSettings(); case "#microsoft.graph.stsPolicy": return new StsPolicy(); case "#microsoft.graph.subjectRightsRequest": return new SubjectRightsRequest(); case "#microsoft.graph.subscribedSku": return new SubscribedSku(); @@ -956,6 +961,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.unifiedRoleManagementPolicyRule": return new UnifiedRoleManagementPolicyRule(); case "#microsoft.graph.unifiedRoleScheduleBase": return new UnifiedRoleScheduleBase(); case "#microsoft.graph.unifiedRoleScheduleInstanceBase": return new UnifiedRoleScheduleInstanceBase(); + case "#microsoft.graph.unifiedStorageQuota": return new UnifiedStorageQuota(); case "#microsoft.graph.unmuteParticipantOperation": return new UnmuteParticipantOperation(); case "#microsoft.graph.updateRecordingStatusOperation": return new UpdateRecordingStatusOperation(); case "#microsoft.graph.urlAssessmentRequest": return new UrlAssessmentRequest(); @@ -989,19 +995,28 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance": return new UserExperienceAnalyticsWorkFromAnywhereModelPerformance(); case "#microsoft.graph.userFlowLanguageConfiguration": return new UserFlowLanguageConfiguration(); case "#microsoft.graph.userFlowLanguagePage": return new UserFlowLanguagePage(); + case "#microsoft.graph.userInsightsSettings": return new UserInsightsSettings(); case "#microsoft.graph.userInstallStateSummary": return new UserInstallStateSummary(); case "#microsoft.graph.userRegistrationDetails": return new UserRegistrationDetails(); case "#microsoft.graph.userScopeTeamsAppInstallation": return new UserScopeTeamsAppInstallation(); case "#microsoft.graph.userSettings": return new UserSettings(); case "#microsoft.graph.userSignInInsight": return new UserSignInInsight(); + case "#microsoft.graph.userStorage": return new UserStorage(); case "#microsoft.graph.userTeamwork": return new UserTeamwork(); case "#microsoft.graph.verticalSection": return new VerticalSection(); case "#microsoft.graph.virtualEndpoint": return new VirtualEndpoint(); case "#microsoft.graph.virtualEvent": return new VirtualEvent(); + case "#microsoft.graph.virtualEventPresenter": return new VirtualEventPresenter(); case "#microsoft.graph.virtualEventRegistration": return new VirtualEventRegistration(); + case "#microsoft.graph.virtualEventRegistrationConfiguration": return new VirtualEventRegistrationConfiguration(); + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": return new VirtualEventRegistrationCustomQuestion(); + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return new VirtualEventRegistrationPredefinedQuestion(); + case "#microsoft.graph.virtualEventRegistrationQuestionBase": return new VirtualEventRegistrationQuestionBase(); case "#microsoft.graph.virtualEventSession": return new VirtualEventSession(); case "#microsoft.graph.virtualEventsRoot": return new VirtualEventsRoot(); + case "#microsoft.graph.virtualEventTownhall": return new VirtualEventTownhall(); case "#microsoft.graph.virtualEventWebinar": return new VirtualEventWebinar(); + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": return new VirtualEventWebinarRegistrationConfiguration(); case "#microsoft.graph.voiceAuthenticationMethodConfiguration": return new VoiceAuthenticationMethodConfiguration(); case "#microsoft.graph.vppToken": return new VppToken(); case "#microsoft.graph.webApp": return new WebApp(); diff --git a/src/main/java/com/microsoft/graph/generated/models/Group.java b/src/main/java/com/microsoft/graph/generated/models/Group.java index 25b0c4fa7bf..6fd3e1dbcab 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Group.java +++ b/src/main/java/com/microsoft/graph/generated/models/Group.java @@ -279,7 +279,7 @@ public Boolean getHasMembersWithLicenseErrors() { return this.backingStore.get("hasMembersWithLicenseErrors"); } /** - * Gets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). + * Gets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -399,7 +399,7 @@ public Onenote getOnenote() { return this.backingStore.get("onenote"); } /** - * Gets the onPremisesDomainName property value. The onPremisesDomainName property + * Gets the onPremisesDomainName property value. Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -415,7 +415,7 @@ public OffsetDateTime getOnPremisesLastSyncDateTime() { return this.backingStore.get("onPremisesLastSyncDateTime"); } /** - * Gets the onPremisesNetBiosName property value. The onPremisesNetBiosName property + * Gets the onPremisesNetBiosName property value. Contains the on-premises netBios name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -439,7 +439,7 @@ public String getOnPremisesSamAccountName() { return this.backingStore.get("onPremisesSamAccountName"); } /** - * Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). Read-only. + * Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -868,7 +868,7 @@ public void setHasMembersWithLicenseErrors(@jakarta.annotation.Nullable final Bo this.backingStore.set("hasMembersWithLicenseErrors", value); } /** - * Sets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). + * Sets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). * @param value Value to set for the hideFromAddressLists property. */ public void setHideFromAddressLists(@jakarta.annotation.Nullable final Boolean value) { @@ -973,7 +973,7 @@ public void setOnenote(@jakarta.annotation.Nullable final Onenote value) { this.backingStore.set("onenote", value); } /** - * Sets the onPremisesDomainName property value. The onPremisesDomainName property + * Sets the onPremisesDomainName property value. Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only. * @param value Value to set for the onPremisesDomainName property. */ public void setOnPremisesDomainName(@jakarta.annotation.Nullable final String value) { @@ -987,7 +987,7 @@ public void setOnPremisesLastSyncDateTime(@jakarta.annotation.Nullable final Off this.backingStore.set("onPremisesLastSyncDateTime", value); } /** - * Sets the onPremisesNetBiosName property value. The onPremisesNetBiosName property + * Sets the onPremisesNetBiosName property value. Contains the on-premises netBios name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only. * @param value Value to set for the onPremisesNetBiosName property. */ public void setOnPremisesNetBiosName(@jakarta.annotation.Nullable final String value) { @@ -1008,7 +1008,7 @@ public void setOnPremisesSamAccountName(@jakarta.annotation.Nullable final Strin this.backingStore.set("onPremisesSamAccountName", value); } /** - * Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). Read-only. + * Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). * @param value Value to set for the onPremisesSecurityIdentifier property. */ public void setOnPremisesSecurityIdentifier(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Identity.java b/src/main/java/com/microsoft/graph/generated/models/Identity.java index 7be532a0114..9d266caab69 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Identity.java +++ b/src/main/java/com/microsoft/graph/generated/models/Identity.java @@ -83,7 +83,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. + * Gets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -103,7 +103,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. + * Gets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -145,14 +145,14 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. + * Sets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. + * Sets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. * @param value Value to set for the id property. */ public void setId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/InsightsSettings.java b/src/main/java/com/microsoft/graph/generated/models/InsightsSettings.java new file mode 100644 index 00000000000..9a269788b4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/InsightsSettings.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +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 InsightsSettings extends Entity implements Parsable { + /** + * Instantiates a new {@link InsightsSettings} and sets the default values. + */ + public InsightsSettings() { + 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 InsightsSettings} + */ + @jakarta.annotation.Nonnull + public static InsightsSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new InsightsSettings(); + } + /** + * Gets the disabledForGroup property value. The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisabledForGroup() { + return this.backingStore.get("disabledForGroup"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("disabledForGroup", (n) -> { this.setDisabledForGroup(n.getStringValue()); }); + deserializerMap.put("isEnabledInOrganization", (n) -> { this.setIsEnabledInOrganization(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsEnabledInOrganization() { + return this.backingStore.get("isEnabledInOrganization"); + } + /** + * 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.writeStringValue("disabledForGroup", this.getDisabledForGroup()); + writer.writeBooleanValue("isEnabledInOrganization", this.getIsEnabledInOrganization()); + } + /** + * Sets the disabledForGroup property value. The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. + * @param value Value to set for the disabledForGroup property. + */ + public void setDisabledForGroup(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("disabledForGroup", value); + } + /** + * Sets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. + * @param value Value to set for the isEnabledInOrganization property. + */ + public void setIsEnabledInOrganization(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isEnabledInOrganization", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ItemInsights.java b/src/main/java/com/microsoft/graph/generated/models/ItemInsights.java new file mode 100644 index 00000000000..7faace2b7a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ItemInsights.java @@ -0,0 +1,44 @@ +package com.microsoft.graph.models; + +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 ItemInsights extends OfficeGraphInsights implements Parsable { + /** + * Instantiates a new {@link ItemInsights} and sets the default values. + */ + public ItemInsights() { + 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 ItemInsights} + */ + @jakarta.annotation.Nonnull + public static ItemInsights createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ItemInsights(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * 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); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/MeetingParticipantInfo.java b/src/main/java/com/microsoft/graph/generated/models/MeetingParticipantInfo.java index 2e26b3525a0..edf9697ba41 100644 --- a/src/main/java/com/microsoft/graph/generated/models/MeetingParticipantInfo.java +++ b/src/main/java/com/microsoft/graph/generated/models/MeetingParticipantInfo.java @@ -32,6 +32,13 @@ public MeetingParticipantInfo() { @jakarta.annotation.Nonnull public static MeetingParticipantInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.virtualEventPresenterInfo": return new VirtualEventPresenterInfo(); + } + } return new MeetingParticipantInfo(); } /** diff --git a/src/main/java/com/microsoft/graph/generated/models/NativeAuthenticationApisEnabled.java b/src/main/java/com/microsoft/graph/generated/models/NativeAuthenticationApisEnabled.java new file mode 100644 index 00000000000..2ed16a1a911 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/NativeAuthenticationApisEnabled.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum NativeAuthenticationApisEnabled implements ValuedEnum { + None("none"), + All("all"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + NativeAuthenticationApisEnabled(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static NativeAuthenticationApisEnabled forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "all": return All; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OfficeGraphInsights.java b/src/main/java/com/microsoft/graph/generated/models/OfficeGraphInsights.java index 6081671688b..ee78eb6265f 100644 --- a/src/main/java/com/microsoft/graph/generated/models/OfficeGraphInsights.java +++ b/src/main/java/com/microsoft/graph/generated/models/OfficeGraphInsights.java @@ -22,6 +22,13 @@ public OfficeGraphInsights() { @jakarta.annotation.Nonnull public static OfficeGraphInsights createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.itemInsights": return new ItemInsights(); + } + } return new OfficeGraphInsights(); } /** @@ -37,7 +44,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Gets the shared property value. Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -45,7 +52,7 @@ public java.util.List getShared() { return this.backingStore.get("shared"); } /** - * Gets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Gets the trending property value. Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -53,7 +60,7 @@ public java.util.List getTrending() { return this.backingStore.get("trending"); } /** - * Gets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Gets the used property value. Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,21 +79,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("used", this.getUsed()); } /** - * Sets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Sets the shared property value. Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param value Value to set for the shared property. */ public void setShared(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("shared", value); } /** - * Sets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Sets the trending property value. Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param value Value to set for the trending property. */ public void setTrending(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("trending", value); } /** - * Sets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Sets the used property value. Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param value Value to set for the used property. */ public void setUsed(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java index caa3053d7d8..79efe3d7f27 100644 --- a/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/generated/models/OnlineMeeting.java @@ -110,7 +110,7 @@ public java.util.List getRecordings() { return this.backingStore.get("recordings"); } /** - * Gets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. + * Gets the startDateTime property value. The meeting start time in UTC. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -200,7 +200,7 @@ public void setRecordings(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("itemInsights", (n) -> { this.setItemInsights(n.getObjectValue(InsightsSettings::createFromDiscriminatorValue)); }); deserializerMap.put("profileCardProperties", (n) -> { this.setProfileCardProperties(n.getCollectionOfObjectValues(ProfileCardProperty::createFromDiscriminatorValue)); }); deserializerMap.put("pronouns", (n) -> { this.setPronouns(n.getObjectValue(PronounsSettings::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. + * @return a {@link InsightsSettings} + */ + @jakarta.annotation.Nullable + public InsightsSettings getItemInsights() { + return this.backingStore.get("itemInsights"); + } /** * Gets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. * @return a {@link java.util.List} @@ -58,9 +67,17 @@ public PronounsSettings getPronouns() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeObjectValue("itemInsights", this.getItemInsights()); writer.writeCollectionOfObjectValues("profileCardProperties", this.getProfileCardProperties()); writer.writeObjectValue("pronouns", this.getPronouns()); } + /** + * Sets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. + * @param value Value to set for the itemInsights property. + */ + public void setItemInsights(@jakarta.annotation.Nullable final InsightsSettings value) { + this.backingStore.set("itemInsights", value); + } /** * Sets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. * @param value Value to set for the profileCardProperties property. diff --git a/src/main/java/com/microsoft/graph/generated/models/PublicClientApplication.java b/src/main/java/com/microsoft/graph/generated/models/PublicClientApplication.java index 3d3b07ab763..767ef177dfa 100644 --- a/src/main/java/com/microsoft/graph/generated/models/PublicClientApplication.java +++ b/src/main/java/com/microsoft/graph/generated/models/PublicClientApplication.java @@ -75,7 +75,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + * Gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -115,7 +115,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + * Sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. * @param value Value to set for the redirectUris property. */ public void setRedirectUris(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SecureScore.java b/src/main/java/com/microsoft/graph/generated/models/SecureScore.java index 1dd72163845..3849dcd60ef 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SecureScore.java +++ b/src/main/java/com/microsoft/graph/generated/models/SecureScore.java @@ -58,7 +58,7 @@ public java.util.List getControlScores() { return this.backingStore.get("controlScores"); } /** - * Gets the createdDateTime property value. The date when the entity is created. + * Gets the createdDateTime property value. When the report was created. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -171,7 +171,7 @@ public void setControlScores(@jakarta.annotation.Nullable final java.util.List>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * 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); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ServiceStorageQuotaBreakdownCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/ServiceStorageQuotaBreakdownCollectionResponse.java new file mode 100644 index 00000000000..7ea4dad69a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ServiceStorageQuotaBreakdownCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 ServiceStorageQuotaBreakdownCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link ServiceStorageQuotaBreakdownCollectionResponse} and sets the default values. + */ + public ServiceStorageQuotaBreakdownCollectionResponse() { + 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 ServiceStorageQuotaBreakdownCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static ServiceStorageQuotaBreakdownCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ServiceStorageQuotaBreakdownCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ServiceStorageQuotaBreakdown::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/Shared.java b/src/main/java/com/microsoft/graph/generated/models/Shared.java index ea112f4f353..418d3d013dc 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Shared.java +++ b/src/main/java/com/microsoft/graph/generated/models/Shared.java @@ -87,7 +87,7 @@ public IdentitySet getOwner() { return this.backingStore.get("owner"); } /** - * Gets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only. + * Gets the scope property value. Indicates the scope of how the item is shared. The possible values are: anonymous, organization, or users. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -153,7 +153,7 @@ public void setOwner(@jakarta.annotation.Nullable final IdentitySet value) { this.backingStore.set("owner", value); } /** - * Sets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only. + * Sets the scope property value. Indicates the scope of how the item is shared. The possible values are: anonymous, organization, or users. Read-only. * @param value Value to set for the scope property. */ public void setScope(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SignIn.java b/src/main/java/com/microsoft/graph/generated/models/SignIn.java index c3732919cca..d129f3fea22 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SignIn.java +++ b/src/main/java/com/microsoft/graph/generated/models/SignIn.java @@ -234,7 +234,7 @@ public String getUserId() { return this.backingStore.get("userId"); } /** - * Gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. Supports $filter (eq, startsWith). + * Gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -427,7 +427,7 @@ public void setUserId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("userId", value); } /** - * Sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. Supports $filter (eq, startsWith). + * Sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). * @param value Value to set for the userPrincipalName property. */ public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Storage.java b/src/main/java/com/microsoft/graph/generated/models/Storage.java index 9dffa8f71e5..b16716afca2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Storage.java +++ b/src/main/java/com/microsoft/graph/generated/models/Storage.java @@ -61,9 +61,10 @@ public BackingStore getBackingStore() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); + final HashMap> deserializerMap = new HashMap>(3); deserializerMap.put("fileStorage", (n) -> { this.setFileStorage(n.getObjectValue(FileStorage::createFromDiscriminatorValue)); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(StorageSettings::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -82,6 +83,14 @@ public FileStorage getFileStorage() { public String getOdataType() { return this.backingStore.get("odataType"); } + /** + * Gets the settings property value. The settings property + * @return a {@link StorageSettings} + */ + @jakarta.annotation.Nullable + public StorageSettings getSettings() { + return this.backingStore.get("settings"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -90,6 +99,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); writer.writeObjectValue("fileStorage", this.getFileStorage()); writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("settings", this.getSettings()); writer.writeAdditionalData(this.getAdditionalData()); } /** @@ -121,4 +131,11 @@ public void setFileStorage(@jakarta.annotation.Nullable final FileStorage value) public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } + /** + * Sets the settings property value. The settings property + * @param value Value to set for the settings property. + */ + public void setSettings(@jakarta.annotation.Nullable final StorageSettings value) { + this.backingStore.set("settings", value); + } } diff --git a/src/main/java/com/microsoft/graph/generated/models/StorageQuotaBreakdown.java b/src/main/java/com/microsoft/graph/generated/models/StorageQuotaBreakdown.java new file mode 100644 index 00000000000..e76f463bb9e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/StorageQuotaBreakdown.java @@ -0,0 +1,102 @@ +package com.microsoft.graph.models; + +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 StorageQuotaBreakdown extends Entity implements Parsable { + /** + * Instantiates a new {@link StorageQuotaBreakdown} and sets the default values. + */ + public StorageQuotaBreakdown() { + 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 StorageQuotaBreakdown} + */ + @jakarta.annotation.Nonnull + public static StorageQuotaBreakdown createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.serviceStorageQuotaBreakdown": return new ServiceStorageQuotaBreakdown(); + } + } + return new StorageQuotaBreakdown(); + } + /** + * Gets the displayName property value. The displayName property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("manageWebUrl", (n) -> { this.setManageWebUrl(n.getStringValue()); }); + deserializerMap.put("used", (n) -> { this.setUsed(n.getLongValue()); }); + return deserializerMap; + } + /** + * Gets the manageWebUrl property value. The manageWebUrl property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getManageWebUrl() { + return this.backingStore.get("manageWebUrl"); + } + /** + * Gets the used property value. The used property + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getUsed() { + return this.backingStore.get("used"); + } + /** + * 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.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("manageWebUrl", this.getManageWebUrl()); + writer.writeLongValue("used", this.getUsed()); + } + /** + * Sets the displayName property value. The displayName property + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the manageWebUrl property value. The manageWebUrl property + * @param value Value to set for the manageWebUrl property. + */ + public void setManageWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("manageWebUrl", value); + } + /** + * Sets the used property value. The used property + * @param value Value to set for the used property. + */ + public void setUsed(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("used", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/StorageSettings.java b/src/main/java/com/microsoft/graph/generated/models/StorageSettings.java new file mode 100644 index 00000000000..59f9250e51d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/StorageSettings.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 StorageSettings extends Entity implements Parsable { + /** + * Instantiates a new {@link StorageSettings} and sets the default values. + */ + public StorageSettings() { + 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 StorageSettings} + */ + @jakarta.annotation.Nonnull + public static StorageSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new StorageSettings(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("quota", (n) -> { this.setQuota(n.getObjectValue(UnifiedStorageQuota::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the quota property value. The quota property + * @return a {@link UnifiedStorageQuota} + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota getQuota() { + return this.backingStore.get("quota"); + } + /** + * 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.writeObjectValue("quota", this.getQuota()); + } + /** + * Sets the quota property value. The quota property + * @param value Value to set for the quota property. + */ + public void setQuota(@jakarta.annotation.Nullable final UnifiedStorageQuota value) { + this.backingStore.set("quota", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/SubscribedSku.java b/src/main/java/com/microsoft/graph/generated/models/SubscribedSku.java index 00787620ea5..e6e2e5dc5f9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SubscribedSku.java +++ b/src/main/java/com/microsoft/graph/generated/models/SubscribedSku.java @@ -42,7 +42,7 @@ public String getAccountName() { return this.backingStore.get("accountName"); } /** - * Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: 'User', 'Company'. + * Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -109,7 +109,7 @@ public UUID getSkuId() { return this.backingStore.get("skuId"); } /** - * Gets the skuPartNumber property value. The SKU part number; for example: 'AAD_PREMIUM' or 'RMSBASIC'. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. + * Gets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -157,7 +157,7 @@ public void setAccountName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("accountName", value); } /** - * Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: 'User', 'Company'. + * Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company. * @param value Value to set for the appliesTo property. */ public void setAppliesTo(@jakarta.annotation.Nullable final String value) { @@ -199,7 +199,7 @@ public void setSkuId(@jakarta.annotation.Nullable final UUID value) { this.backingStore.set("skuId", value); } /** - * Sets the skuPartNumber property value. The SKU part number; for example: 'AAD_PREMIUM' or 'RMSBASIC'. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. + * Sets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. * @param value Value to set for the skuPartNumber property. */ public void setSkuPartNumber(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SynchronizationSchedule.java b/src/main/java/com/microsoft/graph/generated/models/SynchronizationSchedule.java index 75278cdbbe7..bfbcbdb8f75 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SynchronizationSchedule.java +++ b/src/main/java/com/microsoft/graph/generated/models/SynchronizationSchedule.java @@ -79,7 +79,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. + * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @return a {@link PeriodAndDuration} */ @jakarta.annotation.Nullable @@ -137,7 +137,7 @@ public void setExpiration(@jakarta.annotation.Nullable final OffsetDateTime valu this.backingStore.set("expiration", value); } /** - * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. + * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @param value Value to set for the interval property. */ public void setInterval(@jakarta.annotation.Nullable final PeriodAndDuration value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/TeamsAsyncOperationType.java b/src/main/java/com/microsoft/graph/generated/models/TeamsAsyncOperationType.java index 7f9b8eef1e5..36db438341c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/TeamsAsyncOperationType.java +++ b/src/main/java/com/microsoft/graph/generated/models/TeamsAsyncOperationType.java @@ -12,7 +12,9 @@ public enum TeamsAsyncOperationType implements ValuedEnum { CreateTeam("createTeam"), UnknownFutureValue("unknownFutureValue"), TeamifyGroup("teamifyGroup"), - CreateChannel("createChannel"); + CreateChannel("createChannel"), + ArchiveChannel("archiveChannel"), + UnarchiveChannel("unarchiveChannel"); public final String value; TeamsAsyncOperationType(final String value) { this.value = value; @@ -31,6 +33,8 @@ public static TeamsAsyncOperationType forValue(@jakarta.annotation.Nonnull final case "unknownFutureValue": return UnknownFutureValue; case "teamifyGroup": return TeamifyGroup; case "createChannel": return CreateChannel; + case "archiveChannel": return ArchiveChannel; + case "unarchiveChannel": return UnarchiveChannel; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/generated/models/Teamwork.java b/src/main/java/com/microsoft/graph/generated/models/Teamwork.java index d80b434bd7e..c4a996052d1 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Teamwork.java +++ b/src/main/java/com/microsoft/graph/generated/models/Teamwork.java @@ -64,7 +64,7 @@ public Boolean getIsTeamsEnabled() { return this.backingStore.get("isTeamsEnabled"); } /** - * Gets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. + * Gets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -123,7 +123,7 @@ public void setIsTeamsEnabled(@jakarta.annotation.Nullable final Boolean value) this.backingStore.set("isTeamsEnabled", value); } /** - * Sets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. + * Sets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @param value Value to set for the region property. */ public void setRegion(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/TenantAppManagementPolicy.java b/src/main/java/com/microsoft/graph/generated/models/TenantAppManagementPolicy.java index 6254bac3739..68b9595af88 100644 --- a/src/main/java/com/microsoft/graph/generated/models/TenantAppManagementPolicy.java +++ b/src/main/java/com/microsoft/graph/generated/models/TenantAppManagementPolicy.java @@ -27,10 +27,10 @@ public static TenantAppManagementPolicy createFromDiscriminatorValue(@jakarta.an } /** * Gets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. - * @return a {@link AppManagementConfiguration} + * @return a {@link AppManagementApplicationConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getApplicationRestrictions() { + public AppManagementApplicationConfiguration getApplicationRestrictions() { return this.backingStore.get("applicationRestrictions"); } /** @@ -40,9 +40,9 @@ public AppManagementConfiguration getApplicationRestrictions() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("applicationRestrictions", (n) -> { this.setApplicationRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("applicationRestrictions", (n) -> { this.setApplicationRestrictions(n.getObjectValue(AppManagementApplicationConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); - deserializerMap.put("servicePrincipalRestrictions", (n) -> { this.setServicePrincipalRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("servicePrincipalRestrictions", (n) -> { this.setServicePrincipalRestrictions(n.getObjectValue(AppManagementServicePrincipalConfiguration::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -55,10 +55,10 @@ public Boolean getIsEnabled() { } /** * Gets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. - * @return a {@link AppManagementConfiguration} + * @return a {@link AppManagementServicePrincipalConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getServicePrincipalRestrictions() { + public AppManagementServicePrincipalConfiguration getServicePrincipalRestrictions() { return this.backingStore.get("servicePrincipalRestrictions"); } /** @@ -76,7 +76,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ * Sets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. * @param value Value to set for the applicationRestrictions property. */ - public void setApplicationRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setApplicationRestrictions(@jakarta.annotation.Nullable final AppManagementApplicationConfiguration value) { this.backingStore.set("applicationRestrictions", value); } /** @@ -90,7 +90,7 @@ public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { * Sets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. * @param value Value to set for the servicePrincipalRestrictions property. */ - public void setServicePrincipalRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setServicePrincipalRestrictions(@jakarta.annotation.Nullable final AppManagementServicePrincipalConfiguration value) { this.backingStore.set("servicePrincipalRestrictions", value); } } diff --git a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignment.java b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignment.java index d213bcd9329..b880e4a9493 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignment.java +++ b/src/main/java/com/microsoft/graph/generated/models/UnifiedRoleAssignment.java @@ -49,7 +49,7 @@ public String getCondition() { return this.backingStore.get("condition"); } /** - * Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand. + * Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand. + * Gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public String getPrincipalId() { return this.backingStore.get("principalId"); } /** - * Gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. + * Gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} */ @jakarta.annotation.Nullable @@ -153,7 +153,7 @@ public void setCondition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("condition", value); } /** - * Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand. + * Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param value Value to set for the directoryScope property. */ public void setDirectoryScope(@jakarta.annotation.Nullable final DirectoryObject value) { @@ -167,7 +167,7 @@ public void setDirectoryScopeId(@jakarta.annotation.Nullable final String value) this.backingStore.set("directoryScopeId", value); } /** - * Sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand. + * Sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { @@ -181,7 +181,7 @@ public void setPrincipalId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("principalId", value); } /** - * Sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. + * Sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. * @param value Value to set for the roleDefinition property. */ public void setRoleDefinition(@jakarta.annotation.Nullable final UnifiedRoleDefinition value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/UnifiedStorageQuota.java b/src/main/java/com/microsoft/graph/generated/models/UnifiedStorageQuota.java new file mode 100644 index 00000000000..8bca019bf6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/UnifiedStorageQuota.java @@ -0,0 +1,163 @@ +package com.microsoft.graph.models; + +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 UnifiedStorageQuota extends Entity implements Parsable { + /** + * Instantiates a new {@link UnifiedStorageQuota} and sets the default values. + */ + public UnifiedStorageQuota() { + 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 UnifiedStorageQuota} + */ + @jakarta.annotation.Nonnull + public static UnifiedStorageQuota createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new UnifiedStorageQuota(); + } + /** + * Gets the deleted property value. The deleted property + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getDeleted() { + return this.backingStore.get("deleted"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("deleted", (n) -> { this.setDeleted(n.getLongValue()); }); + deserializerMap.put("manageWebUrl", (n) -> { this.setManageWebUrl(n.getStringValue()); }); + deserializerMap.put("remaining", (n) -> { this.setRemaining(n.getLongValue()); }); + deserializerMap.put("services", (n) -> { this.setServices(n.getCollectionOfObjectValues(ServiceStorageQuotaBreakdown::createFromDiscriminatorValue)); }); + deserializerMap.put("state", (n) -> { this.setState(n.getStringValue()); }); + deserializerMap.put("total", (n) -> { this.setTotal(n.getLongValue()); }); + deserializerMap.put("used", (n) -> { this.setUsed(n.getLongValue()); }); + return deserializerMap; + } + /** + * Gets the manageWebUrl property value. The manageWebUrl property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getManageWebUrl() { + return this.backingStore.get("manageWebUrl"); + } + /** + * Gets the remaining property value. The remaining property + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getRemaining() { + return this.backingStore.get("remaining"); + } + /** + * Gets the services property value. The services property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getServices() { + return this.backingStore.get("services"); + } + /** + * Gets the state property value. The state property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getState() { + return this.backingStore.get("state"); + } + /** + * Gets the total property value. The total property + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getTotal() { + return this.backingStore.get("total"); + } + /** + * Gets the used property value. The used property + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getUsed() { + return this.backingStore.get("used"); + } + /** + * 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.writeLongValue("deleted", this.getDeleted()); + writer.writeStringValue("manageWebUrl", this.getManageWebUrl()); + writer.writeLongValue("remaining", this.getRemaining()); + writer.writeCollectionOfObjectValues("services", this.getServices()); + writer.writeStringValue("state", this.getState()); + writer.writeLongValue("total", this.getTotal()); + writer.writeLongValue("used", this.getUsed()); + } + /** + * Sets the deleted property value. The deleted property + * @param value Value to set for the deleted property. + */ + public void setDeleted(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("deleted", value); + } + /** + * Sets the manageWebUrl property value. The manageWebUrl property + * @param value Value to set for the manageWebUrl property. + */ + public void setManageWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("manageWebUrl", value); + } + /** + * Sets the remaining property value. The remaining property + * @param value Value to set for the remaining property. + */ + public void setRemaining(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("remaining", value); + } + /** + * Sets the services property value. The services property + * @param value Value to set for the services property. + */ + public void setServices(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("services", value); + } + /** + * Sets the state property value. The state property + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("state", value); + } + /** + * Sets the total property value. The total property + * @param value Value to set for the total property. + */ + public void setTotal(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("total", value); + } + /** + * Sets the used property value. The used property + * @param value Value to set for the used property. + */ + public void setUsed(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("used", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/User.java b/src/main/java/com/microsoft/graph/generated/models/User.java index 7b5e8f19f40..74d31bdeb76 100644 --- a/src/main/java/com/microsoft/graph/generated/models/User.java +++ b/src/main/java/com/microsoft/graph/generated/models/User.java @@ -453,7 +453,7 @@ public Map> getFieldDeserializers deserializerMap.put("identities", (n) -> { this.setIdentities(n.getCollectionOfObjectValues(ObjectIdentity::createFromDiscriminatorValue)); }); deserializerMap.put("imAddresses", (n) -> { this.setImAddresses(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("inferenceClassification", (n) -> { this.setInferenceClassification(n.getObjectValue(InferenceClassification::createFromDiscriminatorValue)); }); - deserializerMap.put("insights", (n) -> { this.setInsights(n.getObjectValue(OfficeGraphInsights::createFromDiscriminatorValue)); }); + deserializerMap.put("insights", (n) -> { this.setInsights(n.getObjectValue(ItemInsights::createFromDiscriminatorValue)); }); deserializerMap.put("interests", (n) -> { this.setInterests(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("isResourceAccount", (n) -> { this.setIsResourceAccount(n.getBooleanValue()); }); deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); }); @@ -580,10 +580,10 @@ public InferenceClassification getInferenceClassification() { } /** * Gets the insights property value. The insights property - * @return a {@link OfficeGraphInsights} + * @return a {@link ItemInsights} */ @jakarta.annotation.Nullable - public OfficeGraphInsights getInsights() { + public ItemInsights getInsights() { return this.backingStore.get("insights"); } /** @@ -1681,7 +1681,7 @@ public void setInferenceClassification(@jakarta.annotation.Nullable final Infere * Sets the insights property value. The insights property * @param value Value to set for the insights property. */ - public void setInsights(@jakarta.annotation.Nullable final OfficeGraphInsights value) { + public void setInsights(@jakarta.annotation.Nullable final ItemInsights value) { this.backingStore.set("insights", value); } /** diff --git a/src/main/java/com/microsoft/graph/generated/models/UserInsightsSettings.java b/src/main/java/com/microsoft/graph/generated/models/UserInsightsSettings.java new file mode 100644 index 00000000000..283d734e78d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/UserInsightsSettings.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 UserInsightsSettings extends Entity implements Parsable { + /** + * Instantiates a new {@link UserInsightsSettings} and sets the default values. + */ + public UserInsightsSettings() { + 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 UserInsightsSettings} + */ + @jakarta.annotation.Nonnull + public static UserInsightsSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new UserInsightsSettings(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the isEnabled property value. The isEnabled property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsEnabled() { + return this.backingStore.get("isEnabled"); + } + /** + * 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.writeBooleanValue("isEnabled", this.getIsEnabled()); + } + /** + * Sets the isEnabled property value. The isEnabled property + * @param value Value to set for the isEnabled property. + */ + public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isEnabled", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/UserRegistrationDetails.java b/src/main/java/com/microsoft/graph/generated/models/UserRegistrationDetails.java index 8693c7fbb9e..f2871562f42 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UserRegistrationDetails.java +++ b/src/main/java/com/microsoft/graph/generated/models/UserRegistrationDetails.java @@ -114,7 +114,7 @@ public Boolean getIsSystemPreferredAuthenticationMethodEnabled() { return this.backingStore.get("isSystemPreferredAuthenticationMethodEnabled"); } /** - * Gets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Gets the lastUpdatedDateTime property value. The date and time (UTC) when the report was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -249,7 +249,7 @@ public void setIsSystemPreferredAuthenticationMethodEnabled(@jakarta.annotation. this.backingStore.set("isSystemPreferredAuthenticationMethodEnabled", value); } /** - * Sets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Sets the lastUpdatedDateTime property value. The date and time (UTC) when the report was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the lastUpdatedDateTime property. */ public void setLastUpdatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/UserSettings.java b/src/main/java/com/microsoft/graph/generated/models/UserSettings.java index a0d0c1d60fc..837e9f324bc 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UserSettings.java +++ b/src/main/java/com/microsoft/graph/generated/models/UserSettings.java @@ -49,10 +49,20 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("contributionToContentDiscoveryAsOrganizationDisabled", (n) -> { this.setContributionToContentDiscoveryAsOrganizationDisabled(n.getBooleanValue()); }); deserializerMap.put("contributionToContentDiscoveryDisabled", (n) -> { this.setContributionToContentDiscoveryDisabled(n.getBooleanValue()); }); + deserializerMap.put("itemInsights", (n) -> { this.setItemInsights(n.getObjectValue(UserInsightsSettings::createFromDiscriminatorValue)); }); deserializerMap.put("shiftPreferences", (n) -> { this.setShiftPreferences(n.getObjectValue(ShiftPreferences::createFromDiscriminatorValue)); }); + deserializerMap.put("storage", (n) -> { this.setStorage(n.getObjectValue(UserStorage::createFromDiscriminatorValue)); }); deserializerMap.put("windows", (n) -> { this.setWindows(n.getCollectionOfObjectValues(WindowsSetting::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the itemInsights property value. The itemInsights property + * @return a {@link UserInsightsSettings} + */ + @jakarta.annotation.Nullable + public UserInsightsSettings getItemInsights() { + return this.backingStore.get("itemInsights"); + } /** * Gets the shiftPreferences property value. The shiftPreferences property * @return a {@link ShiftPreferences} @@ -61,6 +71,14 @@ public Map> getFieldDeserializers public ShiftPreferences getShiftPreferences() { return this.backingStore.get("shiftPreferences"); } + /** + * Gets the storage property value. The storage property + * @return a {@link UserStorage} + */ + @jakarta.annotation.Nullable + public UserStorage getStorage() { + return this.backingStore.get("storage"); + } /** * Gets the windows property value. The windows property * @return a {@link java.util.List} @@ -78,7 +96,9 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeBooleanValue("contributionToContentDiscoveryAsOrganizationDisabled", this.getContributionToContentDiscoveryAsOrganizationDisabled()); writer.writeBooleanValue("contributionToContentDiscoveryDisabled", this.getContributionToContentDiscoveryDisabled()); + writer.writeObjectValue("itemInsights", this.getItemInsights()); writer.writeObjectValue("shiftPreferences", this.getShiftPreferences()); + writer.writeObjectValue("storage", this.getStorage()); writer.writeCollectionOfObjectValues("windows", this.getWindows()); } /** @@ -95,6 +115,13 @@ public void setContributionToContentDiscoveryAsOrganizationDisabled(@jakarta.ann public void setContributionToContentDiscoveryDisabled(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("contributionToContentDiscoveryDisabled", value); } + /** + * Sets the itemInsights property value. The itemInsights property + * @param value Value to set for the itemInsights property. + */ + public void setItemInsights(@jakarta.annotation.Nullable final UserInsightsSettings value) { + this.backingStore.set("itemInsights", value); + } /** * Sets the shiftPreferences property value. The shiftPreferences property * @param value Value to set for the shiftPreferences property. @@ -102,6 +129,13 @@ public void setContributionToContentDiscoveryDisabled(@jakarta.annotation.Nullab public void setShiftPreferences(@jakarta.annotation.Nullable final ShiftPreferences value) { this.backingStore.set("shiftPreferences", value); } + /** + * Sets the storage property value. The storage property + * @param value Value to set for the storage property. + */ + public void setStorage(@jakarta.annotation.Nullable final UserStorage value) { + this.backingStore.set("storage", value); + } /** * Sets the windows property value. The windows property * @param value Value to set for the windows property. diff --git a/src/main/java/com/microsoft/graph/generated/models/UserSimulationEventInfo.java b/src/main/java/com/microsoft/graph/generated/models/UserSimulationEventInfo.java index 25f2b40963a..3b8284976e7 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UserSimulationEventInfo.java +++ b/src/main/java/com/microsoft/graph/generated/models/UserSimulationEventInfo.java @@ -64,6 +64,14 @@ public BackingStore getBackingStore() { public String getBrowser() { return this.backingStore.get("browser"); } + /** + * Gets the clickSource property value. The clickSource property + * @return a {@link ClickSource} + */ + @jakarta.annotation.Nullable + public ClickSource getClickSource() { + return this.backingStore.get("clickSource"); + } /** * Gets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. * @return a {@link OffsetDateTime} @@ -86,8 +94,9 @@ public String getEventName() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); + final HashMap> deserializerMap = new HashMap>(7); deserializerMap.put("browser", (n) -> { this.setBrowser(n.getStringValue()); }); + deserializerMap.put("clickSource", (n) -> { this.setClickSource(n.getEnumValue(ClickSource::forValue)); }); deserializerMap.put("eventDateTime", (n) -> { this.setEventDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("eventName", (n) -> { this.setEventName(n.getStringValue()); }); deserializerMap.put("ipAddress", (n) -> { this.setIpAddress(n.getStringValue()); }); @@ -126,6 +135,7 @@ public String getOsPlatformDeviceDetails() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeStringValue("browser", this.getBrowser()); + writer.writeEnumValue("clickSource", this.getClickSource()); writer.writeOffsetDateTimeValue("eventDateTime", this.getEventDateTime()); writer.writeStringValue("eventName", this.getEventName()); writer.writeStringValue("ipAddress", this.getIpAddress()); @@ -155,6 +165,13 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value public void setBrowser(@jakarta.annotation.Nullable final String value) { this.backingStore.set("browser", value); } + /** + * Sets the clickSource property value. The clickSource property + * @param value Value to set for the clickSource property. + */ + public void setClickSource(@jakarta.annotation.Nullable final ClickSource value) { + this.backingStore.set("clickSource", value); + } /** * Sets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. * @param value Value to set for the eventDateTime property. diff --git a/src/main/java/com/microsoft/graph/generated/models/UserStorage.java b/src/main/java/com/microsoft/graph/generated/models/UserStorage.java new file mode 100644 index 00000000000..5bfd95a609e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/UserStorage.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 UserStorage extends Entity implements Parsable { + /** + * Instantiates a new {@link UserStorage} and sets the default values. + */ + public UserStorage() { + 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 UserStorage} + */ + @jakarta.annotation.Nonnull + public static UserStorage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new UserStorage(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("quota", (n) -> { this.setQuota(n.getObjectValue(UnifiedStorageQuota::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the quota property value. The quota property + * @return a {@link UnifiedStorageQuota} + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota getQuota() { + return this.backingStore.get("quota"); + } + /** + * 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.writeObjectValue("quota", this.getQuota()); + } + /** + * Sets the quota property value. The quota property + * @param value Value to set for the quota property. + */ + public void setQuota(@jakarta.annotation.Nullable final UnifiedStorageQuota value) { + this.backingStore.set("quota", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/UserTeamwork.java b/src/main/java/com/microsoft/graph/generated/models/UserTeamwork.java index b2186a8cd71..f49dfac5d6d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/UserTeamwork.java +++ b/src/main/java/com/microsoft/graph/generated/models/UserTeamwork.java @@ -54,7 +54,7 @@ public java.util.List getInstalledApps() { return this.backingStore.get("installedApps"); } /** - * Gets the locale property value. The chosen locale of a user in Microsoft Teams. + * Gets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A users locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getLocale() { return this.backingStore.get("locale"); } /** - * Gets the region property value. The region of the user in Microsoft Teams. + * Gets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -96,14 +96,14 @@ public void setInstalledApps(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers deserializerMap.put("description", (n) -> { this.setDescription(n.getObjectValue(ItemBody::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); }); + deserializerMap.put("presenters", (n) -> { this.setPresenters(n.getCollectionOfObjectValues(VirtualEventPresenter::createFromDiscriminatorValue)); }); deserializerMap.put("sessions", (n) -> { this.setSessions(n.getCollectionOfObjectValues(VirtualEventSession::createFromDiscriminatorValue)); }); deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(VirtualEventStatus::forValue)); }); return deserializerMap; } /** - * Gets the sessions property value. Sessions for the virtual event. + * Gets the presenters property value. The virtual event presenters. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPresenters() { + return this.backingStore.get("presenters"); + } + /** + * Gets the sessions property value. The sessions for the virtual event. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -96,7 +106,7 @@ public DateTimeTimeZone getStartDateTime() { return this.backingStore.get("startDateTime"); } /** - * Gets the status property value. Status of the virtual event. The possible values are: draft, published, canceled, unknownFutureValue. + * Gets the status property value. The status of the virtual event. The possible values are: draft, published, canceled, and unknownFutureValue. * @return a {@link VirtualEventStatus} */ @jakarta.annotation.Nullable @@ -114,40 +124,48 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("description", this.getDescription()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeObjectValue("endDateTime", this.getEndDateTime()); + writer.writeCollectionOfObjectValues("presenters", this.getPresenters()); writer.writeCollectionOfObjectValues("sessions", this.getSessions()); writer.writeObjectValue("startDateTime", this.getStartDateTime()); writer.writeEnumValue("status", this.getStatus()); } /** - * Sets the createdBy property value. Identity information for the creator of the virtual event. Inherited from virtualEvent. + * Sets the createdBy property value. The identity information for the creator of the virtual event. Inherited from virtualEvent. * @param value Value to set for the createdBy property. */ public void setCreatedBy(@jakarta.annotation.Nullable final CommunicationsIdentitySet value) { this.backingStore.set("createdBy", value); } /** - * Sets the description property value. Description of the virtual event. + * Sets the description property value. A description of the virtual event. * @param value Value to set for the description property. */ public void setDescription(@jakarta.annotation.Nullable final ItemBody value) { this.backingStore.set("description", value); } /** - * Sets the displayName property value. Display name of the virtual event. + * Sets the displayName property value. The display name of the virtual event. * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the endDateTime property value. End time of the virtual event. The timeZone property can be set to any of the time zones currently supported by Windows. For details on how to get all available time zones using PowerShell, see Get-TimeZone. + * Sets the endDateTime property value. The end time of the virtual event. The timeZone property can be set to any of the time zones currently supported by Windows. For details on how to get all available time zones using PowerShell, see Get-TimeZone. * @param value Value to set for the endDateTime property. */ public void setEndDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) { this.backingStore.set("endDateTime", value); } /** - * Sets the sessions property value. Sessions for the virtual event. + * Sets the presenters property value. The virtual event presenters. + * @param value Value to set for the presenters property. + */ + public void setPresenters(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("presenters", value); + } + /** + * Sets the sessions property value. The sessions for the virtual event. * @param value Value to set for the sessions property. */ public void setSessions(@jakarta.annotation.Nullable final java.util.List value) { @@ -161,7 +179,7 @@ public void setStartDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone this.backingStore.set("startDateTime", value); } /** - * Sets the status property value. Status of the virtual event. The possible values are: draft, published, canceled, unknownFutureValue. + * Sets the status property value. The status of the virtual event. The possible values are: draft, published, canceled, and unknownFutureValue. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final VirtualEventStatus value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenter.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenter.java new file mode 100644 index 00000000000..0b22c2a52b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenter.java @@ -0,0 +1,95 @@ +package com.microsoft.graph.models; + +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 VirtualEventPresenter extends Entity implements Parsable { + /** + * Instantiates a new {@link VirtualEventPresenter} and sets the default values. + */ + public VirtualEventPresenter() { + 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 VirtualEventPresenter} + */ + @jakarta.annotation.Nonnull + public static VirtualEventPresenter createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventPresenter(); + } + /** + * Gets the email property value. Email address of the presenter. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getEmail() { + return this.backingStore.get("email"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); + deserializerMap.put("identity", (n) -> { this.setIdentity(n.getObjectValue(Identity::createFromDiscriminatorValue)); }); + deserializerMap.put("presenterDetails", (n) -> { this.setPresenterDetails(n.getObjectValue(VirtualEventPresenterDetails::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the identity property value. Identity information of the presenter. The supported identities are: communicationsGuestIdentity and communicationsUserIdentity. + * @return a {@link Identity} + */ + @jakarta.annotation.Nullable + public Identity getIdentity() { + return this.backingStore.get("identity"); + } + /** + * Gets the presenterDetails property value. Other details about the presenter. This property returns null when the virtual event type is virtualEventTownhall. + * @return a {@link VirtualEventPresenterDetails} + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterDetails getPresenterDetails() { + return this.backingStore.get("presenterDetails"); + } + /** + * 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.writeStringValue("email", this.getEmail()); + writer.writeObjectValue("identity", this.getIdentity()); + writer.writeObjectValue("presenterDetails", this.getPresenterDetails()); + } + /** + * Sets the email property value. Email address of the presenter. + * @param value Value to set for the email property. + */ + public void setEmail(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("email", value); + } + /** + * Sets the identity property value. Identity information of the presenter. The supported identities are: communicationsGuestIdentity and communicationsUserIdentity. + * @param value Value to set for the identity property. + */ + public void setIdentity(@jakarta.annotation.Nullable final Identity value) { + this.backingStore.set("identity", value); + } + /** + * Sets the presenterDetails property value. Other details about the presenter. This property returns null when the virtual event type is virtualEventTownhall. + * @param value Value to set for the presenterDetails property. + */ + public void setPresenterDetails(@jakarta.annotation.Nullable final VirtualEventPresenterDetails value) { + this.backingStore.set("presenterDetails", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterCollectionResponse.java new file mode 100644 index 00000000000..3cc281fc739 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 VirtualEventPresenterCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link VirtualEventPresenterCollectionResponse} and sets the default values. + */ + public VirtualEventPresenterCollectionResponse() { + 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 VirtualEventPresenterCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static VirtualEventPresenterCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventPresenterCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(VirtualEventPresenter::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterDetails.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterDetails.java new file mode 100644 index 00000000000..74f220b82cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterDetails.java @@ -0,0 +1,226 @@ +package com.microsoft.graph.models; + +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 VirtualEventPresenterDetails implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link VirtualEventPresenterDetails} and sets the default values. + */ + public VirtualEventPresenterDetails() { + 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 VirtualEventPresenterDetails} + */ + @jakarta.annotation.Nonnull + public static VirtualEventPresenterDetails createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventPresenterDetails(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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; + } + /** + * Gets the bio property value. Bio of the presenter. + * @return a {@link ItemBody} + */ + @jakarta.annotation.Nullable + public ItemBody getBio() { + return this.backingStore.get("bio"); + } + /** + * Gets the company property value. The presenter's company name. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCompany() { + return this.backingStore.get("company"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(8); + deserializerMap.put("bio", (n) -> { this.setBio(n.getObjectValue(ItemBody::createFromDiscriminatorValue)); }); + deserializerMap.put("company", (n) -> { this.setCompany(n.getStringValue()); }); + deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); }); + deserializerMap.put("linkedInProfileWebUrl", (n) -> { this.setLinkedInProfileWebUrl(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("personalSiteWebUrl", (n) -> { this.setPersonalSiteWebUrl(n.getStringValue()); }); + deserializerMap.put("photo", (n) -> { this.setPhoto(n.getByteArrayValue()); }); + deserializerMap.put("twitterProfileWebUrl", (n) -> { this.setTwitterProfileWebUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the jobTitle property value. The presenter's job title. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getJobTitle() { + return this.backingStore.get("jobTitle"); + } + /** + * Gets the linkedInProfileWebUrl property value. The presenter's LinkedIn profile URL. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLinkedInProfileWebUrl() { + return this.backingStore.get("linkedInProfileWebUrl"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the personalSiteWebUrl property value. The presenter's personal website URL. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPersonalSiteWebUrl() { + return this.backingStore.get("personalSiteWebUrl"); + } + /** + * Gets the photo property value. The content stream of the presenter's photo. + * @return a {@link byte[]} + */ + @jakarta.annotation.Nullable + public byte[] getPhoto() { + return this.backingStore.get("photo"); + } + /** + * Gets the twitterProfileWebUrl property value. The presenter's Twitter profile URL. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTwitterProfileWebUrl() { + return this.backingStore.get("twitterProfileWebUrl"); + } + /** + * 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("bio", this.getBio()); + writer.writeStringValue("company", this.getCompany()); + writer.writeStringValue("jobTitle", this.getJobTitle()); + writer.writeStringValue("linkedInProfileWebUrl", this.getLinkedInProfileWebUrl()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("personalSiteWebUrl", this.getPersonalSiteWebUrl()); + writer.writeByteArrayValue("photo", this.getPhoto()); + writer.writeStringValue("twitterProfileWebUrl", this.getTwitterProfileWebUrl()); + 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 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 bio property value. Bio of the presenter. + * @param value Value to set for the bio property. + */ + public void setBio(@jakarta.annotation.Nullable final ItemBody value) { + this.backingStore.set("bio", value); + } + /** + * Sets the company property value. The presenter's company name. + * @param value Value to set for the company property. + */ + public void setCompany(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("company", value); + } + /** + * Sets the jobTitle property value. The presenter's job title. + * @param value Value to set for the jobTitle property. + */ + public void setJobTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("jobTitle", value); + } + /** + * Sets the linkedInProfileWebUrl property value. The presenter's LinkedIn profile URL. + * @param value Value to set for the linkedInProfileWebUrl property. + */ + public void setLinkedInProfileWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("linkedInProfileWebUrl", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the personalSiteWebUrl property value. The presenter's personal website URL. + * @param value Value to set for the personalSiteWebUrl property. + */ + public void setPersonalSiteWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("personalSiteWebUrl", value); + } + /** + * Sets the photo property value. The content stream of the presenter's photo. + * @param value Value to set for the photo property. + */ + public void setPhoto(@jakarta.annotation.Nullable final byte[] value) { + this.backingStore.set("photo", value); + } + /** + * Sets the twitterProfileWebUrl property value. The presenter's Twitter profile URL. + * @param value Value to set for the twitterProfileWebUrl property. + */ + public void setTwitterProfileWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("twitterProfileWebUrl", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterInfo.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterInfo.java new file mode 100644 index 00000000000..3fa34ad9a34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventPresenterInfo.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models; + +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 VirtualEventPresenterInfo extends MeetingParticipantInfo implements Parsable { + /** + * Instantiates a new {@link VirtualEventPresenterInfo} and sets the default values. + */ + public VirtualEventPresenterInfo() { + super(); + this.setOdataType("#microsoft.graph.virtualEventPresenterInfo"); + } + /** + * 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 VirtualEventPresenterInfo} + */ + @jakarta.annotation.Nonnull + public static VirtualEventPresenterInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventPresenterInfo(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("presenterDetails", (n) -> { this.setPresenterDetails(n.getObjectValue(VirtualEventPresenterDetails::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the presenterDetails property value. The presenterDetails property + * @return a {@link VirtualEventPresenterDetails} + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterDetails getPresenterDetails() { + return this.backingStore.get("presenterDetails"); + } + /** + * 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.writeObjectValue("presenterDetails", this.getPresenterDetails()); + } + /** + * Sets the presenterDetails property value. The presenterDetails property + * @param value Value to set for the presenterDetails property. + */ + public void setPresenterDetails(@jakarta.annotation.Nullable final VirtualEventPresenterDetails value) { + this.backingStore.set("presenterDetails", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistration.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistration.java index dacc71d84bc..fe4996958a1 100644 --- a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistration.java +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistration.java @@ -52,8 +52,11 @@ public Map> getFieldDeserializers deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); }); deserializerMap.put("firstName", (n) -> { this.setFirstName(n.getStringValue()); }); deserializerMap.put("lastName", (n) -> { this.setLastName(n.getStringValue()); }); + deserializerMap.put("preferredLanguage", (n) -> { this.setPreferredLanguage(n.getStringValue()); }); + deserializerMap.put("preferredTimezone", (n) -> { this.setPreferredTimezone(n.getStringValue()); }); deserializerMap.put("registrationDateTime", (n) -> { this.setRegistrationDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("registrationQuestionAnswers", (n) -> { this.setRegistrationQuestionAnswers(n.getCollectionOfObjectValues(VirtualEventRegistrationQuestionAnswer::createFromDiscriminatorValue)); }); + deserializerMap.put("sessions", (n) -> { this.setSessions(n.getCollectionOfObjectValues(VirtualEventSession::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(VirtualEventAttendeeRegistrationStatus::forValue)); }); deserializerMap.put("userId", (n) -> { this.setUserId(n.getStringValue()); }); return deserializerMap; @@ -74,6 +77,22 @@ public String getFirstName() { public String getLastName() { return this.backingStore.get("lastName"); } + /** + * Gets the preferredLanguage property value. The registrant's preferred language. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPreferredLanguage() { + return this.backingStore.get("preferredLanguage"); + } + /** + * Gets the preferredTimezone property value. The registrant's time zone details. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getPreferredTimezone() { + return this.backingStore.get("preferredTimezone"); + } /** * Gets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} @@ -91,7 +110,15 @@ public java.util.List getRegistrationQue return this.backingStore.get("registrationQuestionAnswers"); } /** - * Gets the status property value. Registration status of the registrant. Read-only. + * Gets the sessions property value. Sessions for a registration. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSessions() { + return this.backingStore.get("sessions"); + } + /** + * Gets the status property value. Registration status of the registrant. Read-only. Possible values are registered, canceled, waitlisted, pendingApproval, rejectedByOrganizer, and unknownFutureValue. * @return a {@link VirtualEventAttendeeRegistrationStatus} */ @jakarta.annotation.Nullable @@ -117,8 +144,11 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("email", this.getEmail()); writer.writeStringValue("firstName", this.getFirstName()); writer.writeStringValue("lastName", this.getLastName()); + writer.writeStringValue("preferredLanguage", this.getPreferredLanguage()); + writer.writeStringValue("preferredTimezone", this.getPreferredTimezone()); writer.writeOffsetDateTimeValue("registrationDateTime", this.getRegistrationDateTime()); writer.writeCollectionOfObjectValues("registrationQuestionAnswers", this.getRegistrationQuestionAnswers()); + writer.writeCollectionOfObjectValues("sessions", this.getSessions()); writer.writeEnumValue("status", this.getStatus()); writer.writeStringValue("userId", this.getUserId()); } @@ -150,6 +180,20 @@ public void setFirstName(@jakarta.annotation.Nullable final String value) { public void setLastName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("lastName", value); } + /** + * Sets the preferredLanguage property value. The registrant's preferred language. + * @param value Value to set for the preferredLanguage property. + */ + public void setPreferredLanguage(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("preferredLanguage", value); + } + /** + * Sets the preferredTimezone property value. The registrant's time zone details. + * @param value Value to set for the preferredTimezone property. + */ + public void setPreferredTimezone(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("preferredTimezone", value); + } /** * Sets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the registrationDateTime property. @@ -165,7 +209,14 @@ public void setRegistrationQuestionAnswers(@jakarta.annotation.Nullable final ja this.backingStore.set("registrationQuestionAnswers", value); } /** - * Sets the status property value. Registration status of the registrant. Read-only. + * Sets the sessions property value. Sessions for a registration. + * @param value Value to set for the sessions property. + */ + public void setSessions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("sessions", value); + } + /** + * Sets the status property value. Registration status of the registrant. Read-only. Possible values are registered, canceled, waitlisted, pendingApproval, rejectedByOrganizer, and unknownFutureValue. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final VirtualEventAttendeeRegistrationStatus value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationConfiguration.java new file mode 100644 index 00000000000..1a65b789756 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationConfiguration.java @@ -0,0 +1,102 @@ +package com.microsoft.graph.models; + +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 VirtualEventRegistrationConfiguration extends Entity implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationConfiguration} and sets the default values. + */ + public VirtualEventRegistrationConfiguration() { + 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 VirtualEventRegistrationConfiguration} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": return new VirtualEventWebinarRegistrationConfiguration(); + } + } + return new VirtualEventRegistrationConfiguration(); + } + /** + * Gets the capacity property value. Total capacity of the virtual event. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getCapacity() { + return this.backingStore.get("capacity"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("capacity", (n) -> { this.setCapacity(n.getIntegerValue()); }); + deserializerMap.put("questions", (n) -> { this.setQuestions(n.getCollectionOfObjectValues(VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue)); }); + deserializerMap.put("registrationWebUrl", (n) -> { this.setRegistrationWebUrl(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the questions property value. Registration questions. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getQuestions() { + return this.backingStore.get("questions"); + } + /** + * Gets the registrationWebUrl property value. Registration URL of the virtual event. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRegistrationWebUrl() { + return this.backingStore.get("registrationWebUrl"); + } + /** + * 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.writeIntegerValue("capacity", this.getCapacity()); + writer.writeCollectionOfObjectValues("questions", this.getQuestions()); + writer.writeStringValue("registrationWebUrl", this.getRegistrationWebUrl()); + } + /** + * Sets the capacity property value. Total capacity of the virtual event. + * @param value Value to set for the capacity property. + */ + public void setCapacity(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("capacity", value); + } + /** + * Sets the questions property value. Registration questions. + * @param value Value to set for the questions property. + */ + public void setQuestions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("questions", value); + } + /** + * Sets the registrationWebUrl property value. Registration URL of the virtual event. + * @param value Value to set for the registrationWebUrl property. + */ + public void setRegistrationWebUrl(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("registrationWebUrl", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationCustomQuestion.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationCustomQuestion.java new file mode 100644 index 00000000000..32b93fb83ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationCustomQuestion.java @@ -0,0 +1,79 @@ +package com.microsoft.graph.models; + +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 VirtualEventRegistrationCustomQuestion extends VirtualEventRegistrationQuestionBase implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationCustomQuestion} and sets the default values. + */ + public VirtualEventRegistrationCustomQuestion() { + super(); + this.setOdataType("#microsoft.graph.virtualEventRegistrationCustomQuestion"); + } + /** + * 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 VirtualEventRegistrationCustomQuestion} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationCustomQuestion createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventRegistrationCustomQuestion(); + } + /** + * Gets the answerChoices property value. Answer choices when answerInputType is singleChoice or multiChoice. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAnswerChoices() { + return this.backingStore.get("answerChoices"); + } + /** + * Gets the answerInputType property value. Input type of the registration question answer. Possible values are text, multilineText, singleChoice, multiChoice, boolean, and unknownFutureValue. + * @return a {@link VirtualEventRegistrationQuestionAnswerInputType} + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionAnswerInputType getAnswerInputType() { + return this.backingStore.get("answerInputType"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("answerChoices", (n) -> { this.setAnswerChoices(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("answerInputType", (n) -> { this.setAnswerInputType(n.getEnumValue(VirtualEventRegistrationQuestionAnswerInputType::forValue)); }); + return deserializerMap; + } + /** + * 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.writeCollectionOfPrimitiveValues("answerChoices", this.getAnswerChoices()); + writer.writeEnumValue("answerInputType", this.getAnswerInputType()); + } + /** + * Sets the answerChoices property value. Answer choices when answerInputType is singleChoice or multiChoice. + * @param value Value to set for the answerChoices property. + */ + public void setAnswerChoices(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("answerChoices", value); + } + /** + * Sets the answerInputType property value. Input type of the registration question answer. Possible values are text, multilineText, singleChoice, multiChoice, boolean, and unknownFutureValue. + * @param value Value to set for the answerInputType property. + */ + public void setAnswerInputType(@jakarta.annotation.Nullable final VirtualEventRegistrationQuestionAnswerInputType value) { + this.backingStore.set("answerInputType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestion.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestion.java new file mode 100644 index 00000000000..352bc8f3ddc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestion.java @@ -0,0 +1,62 @@ +package com.microsoft.graph.models; + +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 VirtualEventRegistrationPredefinedQuestion extends VirtualEventRegistrationQuestionBase implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationPredefinedQuestion} and sets the default values. + */ + public VirtualEventRegistrationPredefinedQuestion() { + super(); + this.setOdataType("#microsoft.graph.virtualEventRegistrationPredefinedQuestion"); + } + /** + * 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 VirtualEventRegistrationPredefinedQuestion} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationPredefinedQuestion createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventRegistrationPredefinedQuestion(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("label", (n) -> { this.setLabel(n.getEnumValue(VirtualEventRegistrationPredefinedQuestionLabel::forValue)); }); + return deserializerMap; + } + /** + * Gets the label property value. Label of the predefined registration question. It accepts a single line of text: street, city, state, postalCode, countryOrRegion, industry, jobTitle, organization, and unknownFutureValue. + * @return a {@link VirtualEventRegistrationPredefinedQuestionLabel} + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationPredefinedQuestionLabel getLabel() { + return this.backingStore.get("label"); + } + /** + * 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.writeEnumValue("label", this.getLabel()); + } + /** + * Sets the label property value. Label of the predefined registration question. It accepts a single line of text: street, city, state, postalCode, countryOrRegion, industry, jobTitle, organization, and unknownFutureValue. + * @param value Value to set for the label property. + */ + public void setLabel(@jakarta.annotation.Nullable final VirtualEventRegistrationPredefinedQuestionLabel value) { + this.backingStore.set("label", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestionLabel.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestionLabel.java new file mode 100644 index 00000000000..3c5fa748e86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationPredefinedQuestionLabel.java @@ -0,0 +1,39 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum VirtualEventRegistrationPredefinedQuestionLabel implements ValuedEnum { + Street("street"), + City("city"), + State("state"), + PostalCode("postalCode"), + CountryOrRegion("countryOrRegion"), + Industry("industry"), + JobTitle("jobTitle"), + Organization("organization"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + VirtualEventRegistrationPredefinedQuestionLabel(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static VirtualEventRegistrationPredefinedQuestionLabel forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "street": return Street; + case "city": return City; + case "state": return State; + case "postalCode": return PostalCode; + case "countryOrRegion": return CountryOrRegion; + case "industry": return Industry; + case "jobTitle": return JobTitle; + case "organization": return Organization; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionAnswerInputType.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionAnswerInputType.java new file mode 100644 index 00000000000..215dff31dc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionAnswerInputType.java @@ -0,0 +1,33 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum VirtualEventRegistrationQuestionAnswerInputType implements ValuedEnum { + Text("text"), + MultilineText("multilineText"), + SingleChoice("singleChoice"), + MultiChoice("multiChoice"), + Boolean("boolean"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + VirtualEventRegistrationQuestionAnswerInputType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static VirtualEventRegistrationQuestionAnswerInputType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "text": return Text; + case "multilineText": return MultilineText; + case "singleChoice": return SingleChoice; + case "multiChoice": return MultiChoice; + case "boolean": return Boolean; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBase.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBase.java new file mode 100644 index 00000000000..560e59d954a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBase.java @@ -0,0 +1,86 @@ +package com.microsoft.graph.models; + +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 VirtualEventRegistrationQuestionBase extends Entity implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBase} and sets the default values. + */ + public VirtualEventRegistrationQuestionBase() { + 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 VirtualEventRegistrationQuestionBase} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationQuestionBase createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": return new VirtualEventRegistrationCustomQuestion(); + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return new VirtualEventRegistrationPredefinedQuestion(); + } + } + return new VirtualEventRegistrationQuestionBase(); + } + /** + * Gets the displayName property value. Display name of the registration question. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("isRequired", (n) -> { this.setIsRequired(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the isRequired property value. Indicates whether an answer to the question is required. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsRequired() { + return this.backingStore.get("isRequired"); + } + /** + * 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.writeStringValue("displayName", this.getDisplayName()); + writer.writeBooleanValue("isRequired", this.getIsRequired()); + } + /** + * Sets the displayName property value. Display name of the registration question. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the isRequired property value. Indicates whether an answer to the question is required. The default value is false. + * @param value Value to set for the isRequired property. + */ + public void setIsRequired(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isRequired", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java new file mode 100644 index 00000000000..4d44033d078 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 VirtualEventRegistrationQuestionBaseCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseCollectionResponse} and sets the default values. + */ + public VirtualEventRegistrationQuestionBaseCollectionResponse() { + 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 VirtualEventRegistrationQuestionBaseCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationQuestionBaseCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventRegistrationQuestionBaseCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhall.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhall.java new file mode 100644 index 00000000000..10ce94bc590 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhall.java @@ -0,0 +1,113 @@ +package com.microsoft.graph.models; + +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 VirtualEventTownhall extends VirtualEvent implements Parsable { + /** + * Instantiates a new {@link VirtualEventTownhall} and sets the default values. + */ + public VirtualEventTownhall() { + super(); + this.setOdataType("#microsoft.graph.virtualEventTownhall"); + } + /** + * 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 VirtualEventTownhall} + */ + @jakarta.annotation.Nonnull + public static VirtualEventTownhall createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventTownhall(); + } + /** + * Gets the audience property value. The audience to whom the town hall is visible. Possible values are: everyone, organization, and unknownFutureValue. + * @return a {@link MeetingAudience} + */ + @jakarta.annotation.Nullable + public MeetingAudience getAudience() { + return this.backingStore.get("audience"); + } + /** + * Gets the coOrganizers property value. Identity information of the coorganizers of the town hall. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getCoOrganizers() { + return this.backingStore.get("coOrganizers"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("audience", (n) -> { this.setAudience(n.getEnumValue(MeetingAudience::forValue)); }); + deserializerMap.put("coOrganizers", (n) -> { this.setCoOrganizers(n.getCollectionOfObjectValues(CommunicationsUserIdentity::createFromDiscriminatorValue)); }); + deserializerMap.put("invitedAttendees", (n) -> { this.setInvitedAttendees(n.getCollectionOfObjectValues(Identity::createFromDiscriminatorValue)); }); + deserializerMap.put("isInviteOnly", (n) -> { this.setIsInviteOnly(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the invitedAttendees property value. The attendees invited to the town hall. The supported identities are: communicationsUserIdentity and communicationsGuestIdentity. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getInvitedAttendees() { + return this.backingStore.get("invitedAttendees"); + } + /** + * Gets the isInviteOnly property value. Indicates whether the town hall is only open to invited people and groups within your organization. The isInviteOnly property can only be true if the value of the audience property is set to organization. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsInviteOnly() { + return this.backingStore.get("isInviteOnly"); + } + /** + * 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.writeEnumValue("audience", this.getAudience()); + writer.writeCollectionOfObjectValues("coOrganizers", this.getCoOrganizers()); + writer.writeCollectionOfObjectValues("invitedAttendees", this.getInvitedAttendees()); + writer.writeBooleanValue("isInviteOnly", this.getIsInviteOnly()); + } + /** + * Sets the audience property value. The audience to whom the town hall is visible. Possible values are: everyone, organization, and unknownFutureValue. + * @param value Value to set for the audience property. + */ + public void setAudience(@jakarta.annotation.Nullable final MeetingAudience value) { + this.backingStore.set("audience", value); + } + /** + * Sets the coOrganizers property value. Identity information of the coorganizers of the town hall. + * @param value Value to set for the coOrganizers property. + */ + public void setCoOrganizers(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("coOrganizers", value); + } + /** + * Sets the invitedAttendees property value. The attendees invited to the town hall. The supported identities are: communicationsUserIdentity and communicationsGuestIdentity. + * @param value Value to set for the invitedAttendees property. + */ + public void setInvitedAttendees(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("invitedAttendees", value); + } + /** + * Sets the isInviteOnly property value. Indicates whether the town hall is only open to invited people and groups within your organization. The isInviteOnly property can only be true if the value of the audience property is set to organization. + * @param value Value to set for the isInviteOnly property. + */ + public void setIsInviteOnly(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isInviteOnly", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhallCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhallCollectionResponse.java new file mode 100644 index 00000000000..66ba480cf3e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventTownhallCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.models; + +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 VirtualEventTownhallCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link VirtualEventTownhallCollectionResponse} and sets the default values. + */ + public VirtualEventTownhallCollectionResponse() { + 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 VirtualEventTownhallCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static VirtualEventTownhallCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventTownhallCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(VirtualEventTownhall::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinar.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinar.java index 1c72ddca80e..8e3de9b1dd0 100644 --- a/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinar.java +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinar.java @@ -13,6 +13,7 @@ public class VirtualEventWebinar extends VirtualEvent implements Parsable { */ public VirtualEventWebinar() { super(); + this.setOdataType("#microsoft.graph.virtualEventWebinar"); } /** * Creates a new instance of the appropriate class based on discriminator value @@ -25,7 +26,7 @@ public static VirtualEventWebinar createFromDiscriminatorValue(@jakarta.annotati return new VirtualEventWebinar(); } /** - * Gets the audience property value. To whom the webinar is visible. + * Gets the audience property value. To whom the webinar is visible. Possible values are: everyone, organization, and unknownFutureValue. * @return a {@link MeetingAudience} */ @jakarta.annotation.Nullable @@ -49,9 +50,18 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("audience", (n) -> { this.setAudience(n.getEnumValue(MeetingAudience::forValue)); }); deserializerMap.put("coOrganizers", (n) -> { this.setCoOrganizers(n.getCollectionOfObjectValues(CommunicationsUserIdentity::createFromDiscriminatorValue)); }); + deserializerMap.put("registrationConfiguration", (n) -> { this.setRegistrationConfiguration(n.getObjectValue(VirtualEventWebinarRegistrationConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("registrations", (n) -> { this.setRegistrations(n.getCollectionOfObjectValues(VirtualEventRegistration::createFromDiscriminatorValue)); }); return deserializerMap; } + /** + * Gets the registrationConfiguration property value. Registration configuration of the webinar. + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration getRegistrationConfiguration() { + return this.backingStore.get("registrationConfiguration"); + } /** * Gets the registrations property value. Registration records of the webinar. * @return a {@link java.util.List} @@ -69,10 +79,11 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeEnumValue("audience", this.getAudience()); writer.writeCollectionOfObjectValues("coOrganizers", this.getCoOrganizers()); + writer.writeObjectValue("registrationConfiguration", this.getRegistrationConfiguration()); writer.writeCollectionOfObjectValues("registrations", this.getRegistrations()); } /** - * Sets the audience property value. To whom the webinar is visible. + * Sets the audience property value. To whom the webinar is visible. Possible values are: everyone, organization, and unknownFutureValue. * @param value Value to set for the audience property. */ public void setAudience(@jakarta.annotation.Nullable final MeetingAudience value) { @@ -85,6 +96,13 @@ public void setAudience(@jakarta.annotation.Nullable final MeetingAudience value public void setCoOrganizers(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("coOrganizers", value); } + /** + * Sets the registrationConfiguration property value. Registration configuration of the webinar. + * @param value Value to set for the registrationConfiguration property. + */ + public void setRegistrationConfiguration(@jakarta.annotation.Nullable final VirtualEventWebinarRegistrationConfiguration value) { + this.backingStore.set("registrationConfiguration", value); + } /** * Sets the registrations property value. Registration records of the webinar. * @param value Value to set for the registrations property. diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinarRegistrationConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinarRegistrationConfiguration.java new file mode 100644 index 00000000000..6adbf694623 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventWebinarRegistrationConfiguration.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.models; + +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 VirtualEventWebinarRegistrationConfiguration extends VirtualEventRegistrationConfiguration implements Parsable { + /** + * Instantiates a new {@link VirtualEventWebinarRegistrationConfiguration} and sets the default values. + */ + public VirtualEventWebinarRegistrationConfiguration() { + 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 VirtualEventWebinarRegistrationConfiguration} + */ + @jakarta.annotation.Nonnull + public static VirtualEventWebinarRegistrationConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventWebinarRegistrationConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("isManualApprovalEnabled", (n) -> { this.setIsManualApprovalEnabled(n.getBooleanValue()); }); + deserializerMap.put("isWaitlistEnabled", (n) -> { this.setIsWaitlistEnabled(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsManualApprovalEnabled() { + return this.backingStore.get("isManualApprovalEnabled"); + } + /** + * Gets the isWaitlistEnabled property value. The isWaitlistEnabled property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsWaitlistEnabled() { + return this.backingStore.get("isWaitlistEnabled"); + } + /** + * 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.writeBooleanValue("isManualApprovalEnabled", this.getIsManualApprovalEnabled()); + writer.writeBooleanValue("isWaitlistEnabled", this.getIsWaitlistEnabled()); + } + /** + * Sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property + * @param value Value to set for the isManualApprovalEnabled property. + */ + public void setIsManualApprovalEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isManualApprovalEnabled", value); + } + /** + * Sets the isWaitlistEnabled property value. The isWaitlistEnabled property + * @param value Value to set for the isWaitlistEnabled property. + */ + public void setIsWaitlistEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isWaitlistEnabled", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/VirtualEventsRoot.java b/src/main/java/com/microsoft/graph/generated/models/VirtualEventsRoot.java index 0df4c8315a7..c0a65b4c562 100644 --- a/src/main/java/com/microsoft/graph/generated/models/VirtualEventsRoot.java +++ b/src/main/java/com/microsoft/graph/generated/models/VirtualEventsRoot.java @@ -40,11 +40,20 @@ public java.util.List getEvents() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("events", (n) -> { this.setEvents(n.getCollectionOfObjectValues(VirtualEvent::createFromDiscriminatorValue)); }); + deserializerMap.put("townhalls", (n) -> { this.setTownhalls(n.getCollectionOfObjectValues(VirtualEventTownhall::createFromDiscriminatorValue)); }); deserializerMap.put("webinars", (n) -> { this.setWebinars(n.getCollectionOfObjectValues(VirtualEventWebinar::createFromDiscriminatorValue)); }); return deserializerMap; } /** - * Gets the webinars property value. The webinars property + * Gets the townhalls property value. A collection of town halls. Nullable. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getTownhalls() { + return this.backingStore.get("townhalls"); + } + /** + * Gets the webinars property value. A collection of webinars. Nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -59,6 +68,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeCollectionOfObjectValues("events", this.getEvents()); + writer.writeCollectionOfObjectValues("townhalls", this.getTownhalls()); writer.writeCollectionOfObjectValues("webinars", this.getWebinars()); } /** @@ -69,7 +79,14 @@ public void setEvents(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("townhalls", value); + } + /** + * Sets the webinars property value. A collection of webinars. Nullable. * @param value Value to set for the webinars property. */ public void setWebinars(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartAxisTitle.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartAxisTitle.java index 38ecf274f80..3986c802d2b 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartAxisTitle.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartAxisTitle.java @@ -53,7 +53,7 @@ public String getText() { return this.backingStore.get("text"); } /** - * Gets the visible property value. A boolean that specifies the visibility of an axis title. + * Gets the visible property value. A Boolean that specifies the visibility of an axis title. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -86,7 +86,7 @@ public void setText(@jakarta.annotation.Nullable final String value) { this.backingStore.set("text", value); } /** - * Sets the visible property value. A boolean that specifies the visibility of an axis title. + * Sets the visible property value. A Boolean that specifies the visibility of an axis title. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartDataLabels.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartDataLabels.java index 903555ec885..0722275627c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartDataLabels.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartDataLabels.java @@ -59,7 +59,7 @@ public String getPosition() { return this.backingStore.get("position"); } /** - * Gets the separator property value. String representing the separator used for the data labels on a chart. + * Gets the separator property value. String that represents the separator used for the data labels on a chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -67,7 +67,7 @@ public String getSeparator() { return this.backingStore.get("separator"); } /** - * Gets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. + * Gets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public Boolean getShowBubbleSize() { return this.backingStore.get("showBubbleSize"); } /** - * Gets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. + * Gets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public Boolean getShowCategoryName() { return this.backingStore.get("showCategoryName"); } /** - * Gets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. + * Gets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public Boolean getShowLegendKey() { return this.backingStore.get("showLegendKey"); } /** - * Gets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. + * Gets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public Boolean getShowPercentage() { return this.backingStore.get("showPercentage"); } /** - * Gets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. + * Gets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -107,7 +107,7 @@ public Boolean getShowSeriesName() { return this.backingStore.get("showSeriesName"); } /** - * Gets the showValue property value. Boolean value representing if the data label value is visible or not. + * Gets the showValue property value. Boolean value that represents whether the data label value is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -146,49 +146,49 @@ public void setPosition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("position", value); } /** - * Sets the separator property value. String representing the separator used for the data labels on a chart. + * Sets the separator property value. String that represents the separator used for the data labels on a chart. * @param value Value to set for the separator property. */ public void setSeparator(@jakarta.annotation.Nullable final String value) { this.backingStore.set("separator", value); } /** - * Sets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. + * Sets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. * @param value Value to set for the showBubbleSize property. */ public void setShowBubbleSize(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showBubbleSize", value); } /** - * Sets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. + * Sets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. * @param value Value to set for the showCategoryName property. */ public void setShowCategoryName(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showCategoryName", value); } /** - * Sets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. + * Sets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. * @param value Value to set for the showLegendKey property. */ public void setShowLegendKey(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showLegendKey", value); } /** - * Sets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. + * Sets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. * @param value Value to set for the showPercentage property. */ public void setShowPercentage(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showPercentage", value); } /** - * Sets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. + * Sets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. * @param value Value to set for the showSeriesName property. */ public void setShowSeriesName(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showSeriesName", value); } /** - * Sets the showValue property value. Boolean value representing if the data label value is visible or not. + * Sets the showValue property value. Boolean value that represents whether the data label value is visible. * @param value Value to set for the showValue property. */ public void setShowValue(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartFont.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartFont.java index 1608d475052..347f3e59923 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartFont.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartFont.java @@ -25,7 +25,7 @@ public static WorkbookChartFont createFromDiscriminatorValue(@jakarta.annotation return new WorkbookChartFont(); } /** - * Gets the bold property value. Represents the bold status of font. + * Gets the bold property value. Indicates whether the fond is bold. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public Boolean getBold() { return this.backingStore.get("bold"); } /** - * Gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Gets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the italic property value. Represents the italic status of the font. + * Gets the italic property value. Indicates whether the fond is italic. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public Boolean getItalic() { return this.backingStore.get("italic"); } /** - * Gets the name property value. Font name (for example 'Calibri') + * Gets the name property value. The font name. For example 'Calibri'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the size property value. Size of the font (for example 11) + * Gets the size property value. The size of the font. For example, 11. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public Double getSize() { return this.backingStore.get("size"); } /** - * Gets the underline property value. Type of underline applied to the font. The possible values are: None, Single. + * Gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -102,42 +102,42 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("underline", this.getUnderline()); } /** - * Sets the bold property value. Represents the bold status of font. + * Sets the bold property value. Indicates whether the fond is bold. * @param value Value to set for the bold property. */ public void setBold(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("bold", value); } /** - * Sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Sets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the italic property value. Represents the italic status of the font. + * Sets the italic property value. Indicates whether the fond is italic. * @param value Value to set for the italic property. */ public void setItalic(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("italic", value); } /** - * Sets the name property value. Font name (for example 'Calibri') + * Sets the name property value. The font name. For example 'Calibri'. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the size property value. Size of the font (for example 11) + * Sets the size property value. The size of the font. For example, 11. * @param value Value to set for the size property. */ public void setSize(@jakarta.annotation.Nullable final Double value) { this.backingStore.set("size", value); } /** - * Sets the underline property value. Type of underline applied to the font. The possible values are: None, Single. + * Sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. * @param value Value to set for the underline property. */ public void setUnderline(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartGridlines.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartGridlines.java index 4d3fb364668..6fdfcc72d4a 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartGridlines.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartGridlines.java @@ -44,7 +44,7 @@ public WorkbookChartGridlinesFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the visible property value. Boolean value representing if the axis gridlines are visible or not. + * Gets the visible property value. Indicates whether the axis gridlines are visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -69,7 +69,7 @@ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartGridlinesF this.backingStore.set("format", value); } /** - * Sets the visible property value. Boolean value representing if the axis gridlines are visible or not. + * Sets the visible property value. Indicates whether the axis gridlines are visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLegend.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLegend.java index f706f02aea7..e8a1f1b14d2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLegend.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLegend.java @@ -46,7 +46,7 @@ public WorkbookChartLegendFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. + * Gets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getPosition() { return this.backingStore.get("position"); } /** - * Gets the visible property value. A boolean value the represents the visibility of a ChartLegend object. + * Gets the visible property value. Indicates whether the chart legend is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -89,7 +89,7 @@ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartLegendForm this.backingStore.set("format", value); } /** - * Sets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. + * Sets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. * @param value Value to set for the overlay property. */ public void setOverlay(@jakarta.annotation.Nullable final Boolean value) { @@ -103,7 +103,7 @@ public void setPosition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("position", value); } /** - * Sets the visible property value. A boolean value the represents the visibility of a ChartLegend object. + * Sets the visible property value. Indicates whether the chart legend is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLineFormat.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLineFormat.java index 2208ecaee17..d3114b2d249 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLineFormat.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartLineFormat.java @@ -25,7 +25,7 @@ public static WorkbookChartLineFormat createFromDiscriminatorValue(@jakarta.anno return new WorkbookChartLineFormat(); } /** - * Gets the color property value. HTML color code representing the color of lines in the chart. + * Gets the color property value. The HTML color code that represents the color of lines in the chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("color", this.getColor()); } /** - * Sets the color property value. HTML color code representing the color of lines in the chart. + * Sets the color property value. The HTML color code that represents the color of lines in the chart. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartPoint.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartPoint.java index c288aea150d..d60b03ac410 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartPoint.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartPoint.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Encapsulates the format properties chart point. Read-only. + * Gets the format property value. The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public WorkbookChartPointFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the value property value. Returns the value of a chart point. Read-only. + * Gets the value property value. The value of a chart point. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("value", this.getValue()); } /** - * Sets the format property value. Encapsulates the format properties chart point. Read-only. + * Sets the format property value. The format properties of the chart point. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartPointFormat value) { this.backingStore.set("format", value); } /** - * Sets the value property value. Returns the value of a chart point. Read-only. + * Sets the value property value. The value of a chart point. Read-only. * @param value Value to set for the value property. */ public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartSeries.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartSeries.java index 5544b960ec8..8afd9fa39fe 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartSeries.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartSeries.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * Gets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public WorkbookChartSeriesFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the name property value. Represents the name of a series in a chart. + * Gets the name property value. The name of a series in a chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the points property value. Represents a collection of all points in the series. Read-only. + * Gets the points property value. A collection of all points in the series. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,21 +72,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("points", this.getPoints()); } /** - * Sets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * Sets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartSeriesFormat value) { this.backingStore.set("format", value); } /** - * Sets the name property value. Represents the name of a series in a chart. + * Sets the name property value. The name of a series in a chart. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the points property value. Represents a collection of all points in the series. Read-only. + * Sets the points property value. A collection of all points in the series. Read-only. * @param value Value to set for the points property. */ public void setPoints(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartTitle.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartTitle.java index fc0c880b368..1f4fb1e66f2 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookChartTitle.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookChartTitle.java @@ -38,7 +38,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * Gets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link WorkbookChartTitleFormat} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public WorkbookChartTitleFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. + * Gets the overlay property value. Indicates whether the chart title will overlay the chart or not. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public Boolean getOverlay() { return this.backingStore.get("overlay"); } /** - * Gets the text property value. Represents the title text of a chart. + * Gets the text property value. The title text of the chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getText() { return this.backingStore.get("text"); } /** - * Gets the visible property value. A boolean value that represents the visibility of a chart title object. + * Gets the visible property value. Indicates whether the chart title is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -82,28 +82,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("visible", this.getVisible()); } /** - * Sets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * Sets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartTitleFormat value) { this.backingStore.set("format", value); } /** - * Sets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. + * Sets the overlay property value. Indicates whether the chart title will overlay the chart or not. * @param value Value to set for the overlay property. */ public void setOverlay(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("overlay", value); } /** - * Sets the text property value. Represents the title text of a chart. + * Sets the text property value. The title text of the chart. * @param value Value to set for the text property. */ public void setText(@jakarta.annotation.Nullable final String value) { this.backingStore.set("text", value); } /** - * Sets the visible property value. A boolean value that represents the visibility of a chart title object. + * Sets the visible property value. Indicates whether the chart title is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookComment.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookComment.java index c473bc29045..f35bfbac59d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookComment.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookComment.java @@ -25,7 +25,7 @@ public static WorkbookComment createFromDiscriminatorValue(@jakarta.annotation.N return new WorkbookComment(); } /** - * Gets the content property value. The content of comment. + * Gets the content property value. The content of the comment. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public String getContent() { return this.backingStore.get("content"); } /** - * Gets the contentType property value. Indicates the type for the comment. + * Gets the contentType property value. The content type of the comment. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the replies property value. The replies property + * Gets the replies property value. The list of replies to the comment. Read-only. Nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,21 +72,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("replies", this.getReplies()); } /** - * Sets the content property value. The content of comment. + * Sets the content property value. The content of the comment. * @param value Value to set for the content property. */ public void setContent(@jakarta.annotation.Nullable final String value) { this.backingStore.set("content", value); } /** - * Sets the contentType property value. Indicates the type for the comment. + * Sets the contentType property value. The content type of the comment. * @param value Value to set for the contentType property. */ public void setContentType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("contentType", value); } /** - * Sets the replies property value. The replies property + * Sets the replies property value. The list of replies to the comment. Read-only. Nullable. * @param value Value to set for the replies property. */ public void setReplies(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookCommentReply.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookCommentReply.java index 92c70c6213c..064ea63565e 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookCommentReply.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookCommentReply.java @@ -25,7 +25,7 @@ public static WorkbookCommentReply createFromDiscriminatorValue(@jakarta.annotat return new WorkbookCommentReply(); } /** - * Gets the content property value. The content of a comment reply. + * Gets the content property value. The content of the reply. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public String getContent() { return this.backingStore.get("content"); } /** - * Gets the contentType property value. Indicates the type for the comment reply. + * Gets the contentType property value. The content type for the reply. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("contentType", this.getContentType()); } /** - * Sets the content property value. The content of a comment reply. + * Sets the content property value. The content of the reply. * @param value Value to set for the content property. */ public void setContent(@jakarta.annotation.Nullable final String value) { this.backingStore.set("content", value); } /** - * Sets the contentType property value. Indicates the type for the comment reply. + * Sets the contentType property value. The content type for the reply. * @param value Value to set for the contentType property. */ public void setContentType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookFormatProtection.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookFormatProtection.java index 690a178bb4f..aedea773f01 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookFormatProtection.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookFormatProtection.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the formulaHidden property value. Indicates if Excel hides the formula for the cells in the range. A null value indicates that the entire range doesn't have uniform formula hidden setting. + * Gets the formulaHidden property value. Indicates whether Excel hides the formula for the cells in the range. A null value indicates that the entire range doesn't have uniform formula hidden setting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public Boolean getFormulaHidden() { return this.backingStore.get("formulaHidden"); } /** - * Gets the locked property value. Indicates if Excel locks the cells in the object. A null value indicates that the entire range doesn't have uniform lock setting. + * Gets the locked property value. Indicates whether Excel locks the cells in the object. A null value indicates that the entire range doesn't have uniform lock setting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("locked", this.getLocked()); } /** - * Sets the formulaHidden property value. Indicates if Excel hides the formula for the cells in the range. A null value indicates that the entire range doesn't have uniform formula hidden setting. + * Sets the formulaHidden property value. Indicates whether Excel hides the formula for the cells in the range. A null value indicates that the entire range doesn't have uniform formula hidden setting. * @param value Value to set for the formulaHidden property. */ public void setFormulaHidden(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("formulaHidden", value); } /** - * Sets the locked property value. Indicates if Excel locks the cells in the object. A null value indicates that the entire range doesn't have uniform lock setting. + * Sets the locked property value. Indicates whether Excel locks the cells in the object. A null value indicates that the entire range doesn't have uniform lock setting. * @param value Value to set for the locked property. */ public void setLocked(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookIcon.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookIcon.java index 830438e040c..60eea24b195 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookIcon.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookIcon.java @@ -68,7 +68,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the index property value. Represents the index of the icon in the given set. + * Gets the index property value. The index of the icon in the given set. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -84,7 +84,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the set property value. Represents the set that the icon is part of. The possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. + * Gets the set property value. The set that the icon is part of. The possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -118,7 +118,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the index property value. Represents the index of the icon in the given set. + * Sets the index property value. The index of the icon in the given set. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { @@ -132,7 +132,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the set property value. Represents the set that the icon is part of. The possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. + * Sets the set property value. The set that the icon is part of. The possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. * @param value Value to set for the set property. */ public void setSet(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookNamedItem.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookNamedItem.java index 1ebccbd6152..f6b6988c433 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookNamedItem.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookNamedItem.java @@ -26,7 +26,7 @@ public static WorkbookNamedItem createFromDiscriminatorValue(@jakarta.annotation return new WorkbookNamedItem(); } /** - * Gets the comment property value. Represents the comment associated with this name. + * Gets the comment property value. The comment associated with this name. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public String getScope() { return this.backingStore.get("scope"); } /** - * Gets the type property value. Indicates what type of reference is associated with the name. The possible values are: String, Integer, Double, Boolean, Range. Read-only. + * Gets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -74,7 +74,7 @@ public String getType() { return this.backingStore.get("type"); } /** - * Gets the value property value. Represents the formula that the name is defined to refer to. for example, =Sheet14!$B$2:$H$12, =4.75, etc. Read-only. + * Gets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -82,7 +82,7 @@ public UntypedNode getValue() { return this.backingStore.get("value"); } /** - * Gets the visible property value. Specifies whether the object is visible or not. + * Gets the visible property value. Indicates whether the object is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -90,7 +90,7 @@ public Boolean getVisible() { return this.backingStore.get("visible"); } /** - * Gets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Gets the worksheet property value. Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} */ @jakarta.annotation.Nullable @@ -113,7 +113,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the comment property value. Represents the comment associated with this name. + * Sets the comment property value. The comment associated with this name. * @param value Value to set for the comment property. */ public void setComment(@jakarta.annotation.Nullable final String value) { @@ -134,28 +134,28 @@ public void setScope(@jakarta.annotation.Nullable final String value) { this.backingStore.set("scope", value); } /** - * Sets the type property value. Indicates what type of reference is associated with the name. The possible values are: String, Integer, Double, Boolean, Range. Read-only. + * Sets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. * @param value Value to set for the type property. */ public void setType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("type", value); } /** - * Sets the value property value. Represents the formula that the name is defined to refer to. for example, =Sheet14!$B$2:$H$12, =4.75, etc. Read-only. + * Sets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. * @param value Value to set for the value property. */ public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("value", value); } /** - * Sets the visible property value. Specifies whether the object is visible or not. + * Sets the visible property value. Indicates whether the object is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("visible", value); } /** - * Sets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Sets the worksheet property value. Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param value Value to set for the worksheet property. */ public void setWorksheet(@jakarta.annotation.Nullable final WorkbookWorksheet value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookPivotTable.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookPivotTable.java index e10f7c3b063..24f2dafd486 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookPivotTable.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookPivotTable.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the name property value. Name of the PivotTable. + * Gets the name property value. The name of the pivot table. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the worksheet property value. The worksheet containing the current PivotTable. Read-only. + * Gets the worksheet property value. The worksheet that contains the current pivot table. Read-only. * @return a {@link WorkbookWorksheet} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the name property value. Name of the PivotTable. + * Sets the name property value. The name of the pivot table. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the worksheet property value. The worksheet containing the current PivotTable. Read-only. + * Sets the worksheet property value. The worksheet that contains the current pivot table. Read-only. * @param value Value to set for the worksheet property. */ public void setWorksheet(@jakarta.annotation.Nullable final WorkbookWorksheet value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookRange.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookRange.java index 16f4d454a29..0a848563352 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookRange.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookRange.java @@ -58,7 +58,7 @@ public Integer getColumnCount() { return this.backingStore.get("columnCount"); } /** - * Gets the columnHidden property value. Represents if all columns of the current range are hidden. + * Gets the columnHidden property value. Indicates whether all columns of the current range are hidden. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -159,7 +159,7 @@ public Integer getRowCount() { return this.backingStore.get("rowCount"); } /** - * Gets the rowHidden property value. Represents if all rows of the current range are hidden. + * Gets the rowHidden property value. Indicates whether all rows of the current range are hidden. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -191,7 +191,7 @@ public UntypedNode getText() { return this.backingStore.get("text"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Gets the values property value. Represents the raw values of the specified range. The data returned can be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -271,7 +271,7 @@ public void setColumnCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("columnCount", value); } /** - * Sets the columnHidden property value. Represents if all columns of the current range are hidden. + * Sets the columnHidden property value. Indicates whether all columns of the current range are hidden. * @param value Value to set for the columnHidden property. */ public void setColumnHidden(@jakarta.annotation.Nullable final Boolean value) { @@ -334,7 +334,7 @@ public void setRowCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("rowCount", value); } /** - * Sets the rowHidden property value. Represents if all rows of the current range are hidden. + * Sets the rowHidden property value. Indicates whether all rows of the current range are hidden. * @param value Value to set for the rowHidden property. */ public void setRowHidden(@jakarta.annotation.Nullable final Boolean value) { @@ -362,7 +362,7 @@ public void setText(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("text", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Sets the values property value. Represents the raw values of the specified range. The data returned can be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeBorder.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeBorder.java index 112e98652b2..4aaa996afd5 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeBorder.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeBorder.java @@ -25,7 +25,7 @@ public static WorkbookRangeBorder createFromDiscriminatorValue(@jakarta.annotati return new WorkbookRangeBorder(); } /** - * Gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). + * Gets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the sideIndex property value. Constant value that indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. + * Gets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public String getSideIndex() { return this.backingStore.get("sideIndex"); } /** - * Gets the style property value. One of the constants of line style specifying the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. + * Gets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getStyle() { return this.backingStore.get("style"); } /** - * Gets the weight property value. Specifies the weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. + * Gets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -82,28 +82,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("weight", this.getWeight()); } /** - * Sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). + * Sets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the sideIndex property value. Constant value that indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. + * Sets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. * @param value Value to set for the sideIndex property. */ public void setSideIndex(@jakarta.annotation.Nullable final String value) { this.backingStore.set("sideIndex", value); } /** - * Sets the style property value. One of the constants of line style specifying the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. + * Sets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. * @param value Value to set for the style property. */ public void setStyle(@jakarta.annotation.Nullable final String value) { this.backingStore.set("style", value); } /** - * Sets the weight property value. Specifies the weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. + * Sets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. * @param value Value to set for the weight property. */ public void setWeight(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFill.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFill.java index 68c14ed939e..86364214404 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFill.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFill.java @@ -25,7 +25,7 @@ public static WorkbookRangeFill createFromDiscriminatorValue(@jakarta.annotation return new WorkbookRangeFill(); } /** - * Gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') + * Gets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("color", this.getColor()); } /** - * Sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') + * Sets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFont.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFont.java index 5c91b86a0d2..528785889ec 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFont.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFont.java @@ -25,7 +25,7 @@ public static WorkbookRangeFont createFromDiscriminatorValue(@jakarta.annotation return new WorkbookRangeFont(); } /** - * Gets the bold property value. Represents the bold status of font. + * Gets the bold property value. Inidicates whether the font is bold. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public Boolean getBold() { return this.backingStore.get("bold"); } /** - * Gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Gets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the italic property value. Represents the italic status of the font. + * Gets the italic property value. Inidicates whether the font is italic. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public Boolean getItalic() { return this.backingStore.get("italic"); } /** - * Gets the name property value. Font name (for example 'Calibri') + * Gets the name property value. The font name. For example, 'Calibri'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the size property value. Font size. + * Gets the size property value. The font size. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public Double getSize() { return this.backingStore.get("size"); } /** - * Gets the underline property value. Type of underline applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. + * Gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -102,42 +102,42 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("underline", this.getUnderline()); } /** - * Sets the bold property value. Represents the bold status of font. + * Sets the bold property value. Inidicates whether the font is bold. * @param value Value to set for the bold property. */ public void setBold(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("bold", value); } /** - * Sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Sets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the italic property value. Represents the italic status of the font. + * Sets the italic property value. Inidicates whether the font is italic. * @param value Value to set for the italic property. */ public void setItalic(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("italic", value); } /** - * Sets the name property value. Font name (for example 'Calibri') + * Sets the name property value. The font name. For example, 'Calibri'. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the size property value. Font size. + * Sets the size property value. The font size. * @param value Value to set for the size property. */ public void setSize(@jakarta.annotation.Nullable final Double value) { this.backingStore.set("size", value); } /** - * Sets the underline property value. Type of underline applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. + * Sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. * @param value Value to set for the underline property. */ public void setUnderline(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFormat.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFormat.java index e0bcc3e6e17..b4f8589bfe9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFormat.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookRangeFormat.java @@ -33,7 +33,7 @@ public java.util.List getBorders() { return this.backingStore.get("borders"); } /** - * Gets the columnWidth property value. Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. + * Gets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public WorkbookRangeFont getFont() { return this.backingStore.get("font"); } /** - * Gets the horizontalAlignment property value. Represents the horizontal alignment for the specified object. The possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. + * Gets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public WorkbookFormatProtection getProtection() { return this.backingStore.get("protection"); } /** - * Gets the rowHeight property value. Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. + * Gets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public Double getRowHeight() { return this.backingStore.get("rowHeight"); } /** - * Gets the verticalAlignment property value. Represents the vertical alignment for the specified object. The possible values are: Top, Center, Bottom, Justify, Distributed. + * Gets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -107,7 +107,7 @@ public String getVerticalAlignment() { return this.backingStore.get("verticalAlignment"); } /** - * Gets the wrapText property value. Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting + * Gets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -139,7 +139,7 @@ public void setBorders(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the formulas property value. Represents the formula in A1-style notation. + * Gets the formulas property value. The formula in A1-style notation. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -71,7 +71,7 @@ public UntypedNode getFormulas() { return this.backingStore.get("formulas"); } /** - * Gets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. + * Gets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -87,7 +87,7 @@ public UntypedNode getFormulasR1C1() { return this.backingStore.get("formulasR1C1"); } /** - * Gets the index property value. Index of the range. + * Gets the index property value. The index of the range. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -95,7 +95,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. + * Gets the numberFormat property value. Excel's number format code for the given cell. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -103,7 +103,7 @@ public UntypedNode getNumberFormat() { return this.backingStore.get("numberFormat"); } /** - * Gets the rowCount property value. Returns the number of visible rows. Read-only. + * Gets the rowCount property value. The number of visible rows. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -111,7 +111,7 @@ public Integer getRowCount() { return this.backingStore.get("rowCount"); } /** - * Gets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. + * Gets the rows property value. The collection of range views associated with the range. Read-only. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public java.util.List getRows() { return this.backingStore.get("rows"); } /** - * Gets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. + * Gets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -127,7 +127,7 @@ public UntypedNode getText() { return this.backingStore.get("text"); } /** - * Gets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Gets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -135,7 +135,7 @@ public UntypedNode getValues() { return this.backingStore.get("values"); } /** - * Gets the valueTypes property value. Represents the type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. + * Gets the valueTypes property value. The type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -163,28 +163,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("valueTypes", this.getValueTypes()); } /** - * Sets the cellAddresses property value. Represents the cell addresses + * Sets the cellAddresses property value. The cell addresses. * @param value Value to set for the cellAddresses property. */ public void setCellAddresses(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("cellAddresses", value); } /** - * Sets the columnCount property value. Returns the number of visible columns. Read-only. + * Sets the columnCount property value. The number of visible columns. Read-only. * @param value Value to set for the columnCount property. */ public void setColumnCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("columnCount", value); } /** - * Sets the formulas property value. Represents the formula in A1-style notation. + * Sets the formulas property value. The formula in A1-style notation. * @param value Value to set for the formulas property. */ public void setFormulas(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("formulas", value); } /** - * Sets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. + * Sets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. * @param value Value to set for the formulasLocal property. */ public void setFormulasLocal(@jakarta.annotation.Nullable final UntypedNode value) { @@ -198,49 +198,49 @@ public void setFormulasR1C1(@jakarta.annotation.Nullable final UntypedNode value this.backingStore.set("formulasR1C1", value); } /** - * Sets the index property value. Index of the range. + * Sets the index property value. The index of the range. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. + * Sets the numberFormat property value. Excel's number format code for the given cell. Read-only. * @param value Value to set for the numberFormat property. */ public void setNumberFormat(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("numberFormat", value); } /** - * Sets the rowCount property value. Returns the number of visible rows. Read-only. + * Sets the rowCount property value. The number of visible rows. Read-only. * @param value Value to set for the rowCount property. */ public void setRowCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("rowCount", value); } /** - * Sets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. + * Sets the rows property value. The collection of range views associated with the range. Read-only. Read-only. * @param value Value to set for the rows property. */ public void setRows(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("rows", value); } /** - * Sets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. + * Sets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. * @param value Value to set for the text property. */ public void setText(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("text", value); } /** - * Sets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Sets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("values", value); } /** - * Sets the valueTypes property value. Represents the type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. + * Sets the valueTypes property value. The type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. * @param value Value to set for the valueTypes property. */ public void setValueTypes(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookTable.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookTable.java index e353ab3acdc..03151713862 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookTable.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookTable.java @@ -25,7 +25,7 @@ public static WorkbookTable createFromDiscriminatorValue(@jakarta.annotation.Non return new WorkbookTable(); } /** - * Gets the columns property value. Represents a collection of all the columns in the table. Read-only. + * Gets the columns property value. The list of all the columns in the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public Boolean getHighlightLastColumn() { return this.backingStore.get("highlightLastColumn"); } /** - * Gets the legacyId property value. Legacy ID used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. + * Gets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public String getLegacyId() { return this.backingStore.get("legacyId"); } /** - * Gets the name property value. Name of the table. + * Gets the name property value. The name of the table. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -88,7 +88,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the rows property value. Represents a collection of all the rows in the table. Read-only. + * Gets the rows property value. The list of all the rows in the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -136,7 +136,7 @@ public Boolean getShowTotals() { return this.backingStore.get("showTotals"); } /** - * Gets the sort property value. Represents the sorting for the table. Read-only. + * Gets the sort property value. The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} */ @jakarta.annotation.Nullable @@ -144,7 +144,7 @@ public WorkbookTableSort getSort() { return this.backingStore.get("sort"); } /** - * Gets the style property value. Constant value that represents the Table style. The possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. + * Gets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -182,7 +182,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the columns property value. Represents a collection of all the columns in the table. Read-only. + * Sets the columns property value. The list of all the columns in the table. Read-only. * @param value Value to set for the columns property. */ public void setColumns(@jakarta.annotation.Nullable final java.util.List value) { @@ -203,21 +203,21 @@ public void setHighlightLastColumn(@jakarta.annotation.Nullable final Boolean va this.backingStore.set("highlightLastColumn", value); } /** - * Sets the legacyId property value. Legacy ID used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. + * Sets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. * @param value Value to set for the legacyId property. */ public void setLegacyId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("legacyId", value); } /** - * Sets the name property value. Name of the table. + * Sets the name property value. The name of the table. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the rows property value. Represents a collection of all the rows in the table. Read-only. + * Sets the rows property value. The list of all the rows in the table. Read-only. * @param value Value to set for the rows property. */ public void setRows(@jakarta.annotation.Nullable final java.util.List value) { @@ -259,14 +259,14 @@ public void setShowTotals(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showTotals", value); } /** - * Sets the sort property value. Represents the sorting for the table. Read-only. + * Sets the sort property value. The sorting for the table. Read-only. * @param value Value to set for the sort property. */ public void setSort(@jakarta.annotation.Nullable final WorkbookTableSort value) { this.backingStore.set("sort", value); } /** - * Sets the style property value. Constant value that represents the Table style. The possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. + * Sets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. * @param value Value to set for the style property. */ public void setStyle(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableColumn.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableColumn.java index eedb36b237f..b6607ddd356 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableColumn.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableColumn.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the filter property value. Retrieve the filter applied to the column. Read-only. + * Gets the filter property value. The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} */ @jakarta.annotation.Nullable @@ -47,7 +47,7 @@ public WorkbookFilter getFilter() { return this.backingStore.get("filter"); } /** - * Gets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. + * Gets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -55,7 +55,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the name property value. Returns the name of the table column. + * Gets the name property value. The name of the table column. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Gets the values property value. TRepresents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -83,28 +83,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("values", this.getValues()); } /** - * Sets the filter property value. Retrieve the filter applied to the column. Read-only. + * Sets the filter property value. The filter applied to the column. Read-only. * @param value Value to set for the filter property. */ public void setFilter(@jakarta.annotation.Nullable final WorkbookFilter value) { this.backingStore.set("filter", value); } /** - * Sets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. + * Sets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the name property value. Returns the name of the table column. + * Sets the name property value. The name of the table column. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Sets the values property value. TRepresents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableRow.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableRow.java index 2f05f8d951e..d8c50a5858d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableRow.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableRow.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. + * Gets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Gets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("values", this.getValues()); } /** - * Sets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. + * Sets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Sets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableSort.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableSort.java index 9f61054e36d..b36ddeb850c 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookTableSort.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookTableSort.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the fields property value. Represents the current conditions used to last sort the table. Read-only. + * Gets the fields property value. The list of the current conditions last used to sort the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public java.util.List getFields() { return this.backingStore.get("fields"); } /** - * Gets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. + * Gets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public Boolean getMatchCase() { return this.backingStore.get("matchCase"); } /** - * Gets the method property value. Represents Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. + * Gets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,21 +72,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("method", this.getMethod()); } /** - * Sets the fields property value. Represents the current conditions used to last sort the table. Read-only. + * Sets the fields property value. The list of the current conditions last used to sort the table. Read-only. * @param value Value to set for the fields property. */ public void setFields(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("fields", value); } /** - * Sets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. + * Sets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. * @param value Value to set for the matchCase property. */ public void setMatchCase(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("matchCase", value); } /** - * Sets the method property value. Represents Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. + * Sets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. * @param value Value to set for the method property. */ public void setMethod(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheet.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheet.java index 1b20bd27633..32894ecba12 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheet.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheet.java @@ -25,7 +25,7 @@ public static WorkbookWorksheet createFromDiscriminatorValue(@jakarta.annotation return new WorkbookWorksheet(); } /** - * Gets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. + * Gets the charts property value. The list of charts that are part of the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -58,7 +58,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the names property value. Returns collection of names that are associated with the worksheet. Read-only. + * Gets the names property value. The list of names that are associated with the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public java.util.List getNames() { return this.backingStore.get("names"); } /** - * Gets the pivotTables property value. Collection of PivotTables that are part of the worksheet. + * Gets the pivotTables property value. The list of piot tables that are part of the worksheet. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -82,7 +82,7 @@ public Integer getPosition() { return this.backingStore.get("position"); } /** - * Gets the protection property value. Returns sheet protection object for a worksheet. Read-only. + * Gets the protection property value. The sheet protection object for a worksheet. Read-only. * @return a {@link WorkbookWorksheetProtection} */ @jakarta.annotation.Nullable @@ -90,7 +90,7 @@ public WorkbookWorksheetProtection getProtection() { return this.backingStore.get("protection"); } /** - * Gets the tables property value. Collection of tables that are part of the worksheet. Read-only. + * Gets the tables property value. The list of tables that are part of the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -98,7 +98,7 @@ public java.util.List getTables() { return this.backingStore.get("tables"); } /** - * Gets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. + * Gets the visibility property value. The visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -122,7 +122,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("visibility", this.getVisibility()); } /** - * Sets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. + * Sets the charts property value. The list of charts that are part of the worksheet. Read-only. * @param value Value to set for the charts property. */ public void setCharts(@jakarta.annotation.Nullable final java.util.List value) { @@ -136,14 +136,14 @@ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the names property value. Returns collection of names that are associated with the worksheet. Read-only. + * Sets the names property value. The list of names that are associated with the worksheet. Read-only. * @param value Value to set for the names property. */ public void setNames(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("names", value); } /** - * Sets the pivotTables property value. Collection of PivotTables that are part of the worksheet. + * Sets the pivotTables property value. The list of piot tables that are part of the worksheet. * @param value Value to set for the pivotTables property. */ public void setPivotTables(@jakarta.annotation.Nullable final java.util.List value) { @@ -157,21 +157,21 @@ public void setPosition(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("position", value); } /** - * Sets the protection property value. Returns sheet protection object for a worksheet. Read-only. + * Sets the protection property value. The sheet protection object for a worksheet. Read-only. * @param value Value to set for the protection property. */ public void setProtection(@jakarta.annotation.Nullable final WorkbookWorksheetProtection value) { this.backingStore.set("protection", value); } /** - * Sets the tables property value. Collection of tables that are part of the worksheet. Read-only. + * Sets the tables property value. The list of tables that are part of the worksheet. Read-only. * @param value Value to set for the tables property. */ public void setTables(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("tables", value); } /** - * Sets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. + * Sets the visibility property value. The visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. * @param value Value to set for the visibility property. */ public void setVisibility(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheetProtection.java b/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheetProtection.java index b82a5d4d779..a7c07cd985d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheetProtection.java +++ b/src/main/java/com/microsoft/graph/generated/models/WorkbookWorksheetProtection.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the options property value. Sheet protection options. Read-only. + * Gets the options property value. Worksheet protection options. Read-only. * @return a {@link WorkbookWorksheetProtectionOptions} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public WorkbookWorksheetProtectionOptions getOptions() { return this.backingStore.get("options"); } /** - * Gets the protected property value. Indicates if the worksheet is protected. Read-only. + * Gets the protected property value. Indicates whether the worksheet is protected. Read-only. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("protected", this.getProtected()); } /** - * Sets the options property value. Sheet protection options. Read-only. + * Sets the options property value. Worksheet protection options. Read-only. * @param value Value to set for the options property. */ public void setOptions(@jakarta.annotation.Nullable final WorkbookWorksheetProtectionOptions value) { this.backingStore.set("options", value); } /** - * Sets the protected property value. Indicates if the worksheet is protected. Read-only. + * Sets the protected property value. Indicates whether the worksheet is protected. Read-only. * @param value Value to set for the protected property. */ public void setProtected(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/X509CertificateCombinationConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/X509CertificateCombinationConfiguration.java index 8584f9bca1b..9a1cc0a55b9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/X509CertificateCombinationConfiguration.java +++ b/src/main/java/com/microsoft/graph/generated/models/X509CertificateCombinationConfiguration.java @@ -26,7 +26,7 @@ public static X509CertificateCombinationConfiguration createFromDiscriminatorVal return new X509CertificateCombinationConfiguration(); } /** - * Gets the allowedIssuerSkis property value. The allowedIssuerSkis property + * Gets the allowedIssuerSkis property value. A list of allowed subject key identifier values. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public java.util.List getAllowedIssuerSkis() { return this.backingStore.get("allowedIssuerSkis"); } /** - * Gets the allowedPolicyOIDs property value. The allowedPolicyOIDs property + * Gets the allowedPolicyOIDs property value. A list of allowed policy OIDs. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfPrimitiveValues("allowedPolicyOIDs", this.getAllowedPolicyOIDs()); } /** - * Sets the allowedIssuerSkis property value. The allowedIssuerSkis property + * Sets the allowedIssuerSkis property value. A list of allowed subject key identifier values. * @param value Value to set for the allowedIssuerSkis property. */ public void setAllowedIssuerSkis(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("allowedIssuerSkis", value); } /** - * Sets the allowedPolicyOIDs property value. The allowedPolicyOIDs property + * Sets the allowedPolicyOIDs property value. A list of allowed policy OIDs. * @param value Value to set for the allowedPolicyOIDs property. */ public void setAllowedPolicyOIDs(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/externalconnectors/PropertyRule.java b/src/main/java/com/microsoft/graph/generated/models/externalconnectors/PropertyRule.java index 0a2f54e9339..3f6f27c6fdf 100644 --- a/src/main/java/com/microsoft/graph/generated/models/externalconnectors/PropertyRule.java +++ b/src/main/java/com/microsoft/graph/generated/models/externalconnectors/PropertyRule.java @@ -95,7 +95,7 @@ public String getProperty() { return this.backingStore.get("property"); } /** - * Gets the values property value. A collection with one or many strings. The specified string(s) will be matched with the specified property using the specified operation. Required. + * Gets the values property value. A collection with one or many strings. One or more specified strings are matched with the specified property using the specified operation. Required. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -160,7 +160,7 @@ public void setProperty(@jakarta.annotation.Nullable final String value) { this.backingStore.set("property", value); } /** - * Sets the values property value. A collection with one or many strings. The specified string(s) will be matched with the specified property using the specified operation. Required. + * Sets the values property value. A collection with one or many strings. One or more specified strings are matched with the specified property using the specified operation. Required. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java b/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java index 42cbc85350d..df4af36ee51 100644 --- a/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java +++ b/src/main/java/com/microsoft/graph/generated/models/identitygovernance/Task.java @@ -44,7 +44,7 @@ public EnumSet getCategory() { return this.backingStore.get("category"); } /** - * Gets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. + * Gets the continueOnError property value. A Boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -94,7 +94,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isEnabled property value. A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. + * Gets the isEnabled property value. A Boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -149,7 +149,7 @@ public void setCategory(@jakarta.annotation.Nullable final EnumSet>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("requestId", (n) -> { this.setRequestId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the requestId property value. The unique identifier for the sign-in request. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRequestId() { + return this.backingStore.get("requestId"); + } + /** + * 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.writeStringValue("requestId", this.getRequestId()); + } + /** + * Sets the requestId property value. The unique identifier for the sign-in request. + * @param value Value to set for the requestId property. + */ + public void setRequestId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("requestId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/CloudLogonSessionEvidence.java b/src/main/java/com/microsoft/graph/generated/models/security/CloudLogonSessionEvidence.java new file mode 100644 index 00000000000..1e054b8207b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/CloudLogonSessionEvidence.java @@ -0,0 +1,199 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudLogonSessionEvidence extends AlertEvidence implements Parsable { + /** + * Instantiates a new {@link CloudLogonSessionEvidence} and sets the default values. + */ + public CloudLogonSessionEvidence() { + super(); + this.setOdataType("#microsoft.graph.security.cloudLogonSessionEvidence"); + } + /** + * 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 CloudLogonSessionEvidence} + */ + @jakarta.annotation.Nonnull + public static CloudLogonSessionEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudLogonSessionEvidence(); + } + /** + * Gets the account property value. The account associated with the sign-in session. + * @return a {@link UserEvidence} + */ + @jakarta.annotation.Nullable + public UserEvidence getAccount() { + return this.backingStore.get("account"); + } + /** + * Gets the browser property value. The browser that is used for the sign-in, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBrowser() { + return this.backingStore.get("browser"); + } + /** + * Gets the deviceName property value. The friendly name of the device, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceName() { + return this.backingStore.get("deviceName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("account", (n) -> { this.setAccount(n.getObjectValue(UserEvidence::createFromDiscriminatorValue)); }); + deserializerMap.put("browser", (n) -> { this.setBrowser(n.getStringValue()); }); + deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); }); + deserializerMap.put("operatingSystem", (n) -> { this.setOperatingSystem(n.getStringValue()); }); + deserializerMap.put("previousLogonDateTime", (n) -> { this.setPreviousLogonDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("protocol", (n) -> { this.setProtocol(n.getStringValue()); }); + deserializerMap.put("sessionId", (n) -> { this.setSessionId(n.getStringValue()); }); + deserializerMap.put("startUtcDateTime", (n) -> { this.setStartUtcDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("userAgent", (n) -> { this.setUserAgent(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the operatingSystem property value. The operating system that the device is running, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOperatingSystem() { + return this.backingStore.get("operatingSystem"); + } + /** + * Gets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getPreviousLogonDateTime() { + return this.backingStore.get("previousLogonDateTime"); + } + /** + * Gets the protocol property value. The authentication protocol that is used in this session, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getProtocol() { + return this.backingStore.get("protocol"); + } + /** + * Gets the sessionId property value. The session ID for the account reported in the alert. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSessionId() { + return this.backingStore.get("sessionId"); + } + /** + * Gets the startUtcDateTime property value. The session start time, if known. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getStartUtcDateTime() { + return this.backingStore.get("startUtcDateTime"); + } + /** + * Gets the userAgent property value. The user agent that is used for the sign-in, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserAgent() { + return this.backingStore.get("userAgent"); + } + /** + * 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.writeObjectValue("account", this.getAccount()); + writer.writeStringValue("browser", this.getBrowser()); + writer.writeStringValue("deviceName", this.getDeviceName()); + writer.writeStringValue("operatingSystem", this.getOperatingSystem()); + writer.writeOffsetDateTimeValue("previousLogonDateTime", this.getPreviousLogonDateTime()); + writer.writeStringValue("protocol", this.getProtocol()); + writer.writeStringValue("sessionId", this.getSessionId()); + writer.writeOffsetDateTimeValue("startUtcDateTime", this.getStartUtcDateTime()); + writer.writeStringValue("userAgent", this.getUserAgent()); + } + /** + * Sets the account property value. The account associated with the sign-in session. + * @param value Value to set for the account property. + */ + public void setAccount(@jakarta.annotation.Nullable final UserEvidence value) { + this.backingStore.set("account", value); + } + /** + * Sets the browser property value. The browser that is used for the sign-in, if known. + * @param value Value to set for the browser property. + */ + public void setBrowser(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("browser", value); + } + /** + * Sets the deviceName property value. The friendly name of the device, if known. + * @param value Value to set for the deviceName property. + */ + public void setDeviceName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceName", value); + } + /** + * Sets the operatingSystem property value. The operating system that the device is running, if known. + * @param value Value to set for the operatingSystem property. + */ + public void setOperatingSystem(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("operatingSystem", value); + } + /** + * Sets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @param value Value to set for the previousLogonDateTime property. + */ + public void setPreviousLogonDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("previousLogonDateTime", value); + } + /** + * Sets the protocol property value. The authentication protocol that is used in this session, if known. + * @param value Value to set for the protocol property. + */ + public void setProtocol(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("protocol", value); + } + /** + * Sets the sessionId property value. The session ID for the account reported in the alert. + * @param value Value to set for the sessionId property. + */ + public void setSessionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("sessionId", value); + } + /** + * Sets the startUtcDateTime property value. The session start time, if known. + * @param value Value to set for the startUtcDateTime property. + */ + public void setStartUtcDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("startUtcDateTime", value); + } + /** + * Sets the userAgent property value. The user agent that is used for the sign-in, if known. + * @param value Value to set for the userAgent property. + */ + public void setUserAgent(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userAgent", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java index dd5ab321e28..35a10f25369 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java @@ -121,6 +121,7 @@ public Map> getFieldDeserializers deserializerMap.put("resolvingComment", (n) -> { this.setResolvingComment(n.getStringValue()); }); deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(AlertSeverity::forValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(IncidentStatus::forValue)); }); + deserializerMap.put("summary", (n) -> { this.setSummary(n.getStringValue()); }); deserializerMap.put("systemTags", (n) -> { this.setSystemTags(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("tenantId", (n) -> { this.setTenantId(n.getStringValue()); }); return deserializerMap; @@ -181,6 +182,14 @@ public AlertSeverity getSeverity() { public IncidentStatus getStatus() { return this.backingStore.get("status"); } + /** + * Gets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSummary() { + return this.backingStore.get("summary"); + } /** * Gets the systemTags property value. The system tags associated with the incident. * @return a {@link java.util.List} @@ -220,6 +229,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("resolvingComment", this.getResolvingComment()); writer.writeEnumValue("severity", this.getSeverity()); writer.writeEnumValue("status", this.getStatus()); + writer.writeStringValue("summary", this.getSummary()); writer.writeCollectionOfPrimitiveValues("systemTags", this.getSystemTags()); writer.writeStringValue("tenantId", this.getTenantId()); } @@ -335,6 +345,13 @@ public void setSeverity(@jakarta.annotation.Nullable final AlertSeverity value) public void setStatus(@jakarta.annotation.Nullable final IncidentStatus value) { this.backingStore.set("status", value); } + /** + * Sets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @param value Value to set for the summary property. + */ + public void setSummary(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("summary", value); + } /** * Sets the systemTags property value. The system tags associated with the incident. * @param value Value to set for the systemTags property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/SslCertificate.java b/src/main/java/com/microsoft/graph/generated/models/security/SslCertificate.java index 7119bc16370..7b2da23901f 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/SslCertificate.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/SslCertificate.java @@ -94,7 +94,7 @@ public OffsetDateTime getLastSeenDateTime() { return this.backingStore.get("lastSeenDateTime"); } /** - * Gets the relatedHosts property value. The hosts related with this sslCertificate. + * Gets the relatedHosts property value. The host resources related with this sslCertificate. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -186,7 +186,7 @@ public void setLastSeenDateTime(@jakarta.annotation.Nullable final OffsetDateTim this.backingStore.set("lastSeenDateTime", value); } /** - * Sets the relatedHosts property value. The hosts related with this sslCertificate. + * Sets the relatedHosts property value. The host resources related with this sslCertificate. * @param value Value to set for the relatedHosts property. */ public void setRelatedHosts(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java index 9918a9760db..6d5e0495bd0 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/OrganizationRequestBuilder.java @@ -96,21 +96,21 @@ public OrganizationRequestBuilder(@jakarta.annotation.Nonnull final String rawUr super(requestAdapter, "{+baseurl}/organization{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @return a {@link OrganizationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public OrganizationCollectionResponse get() { return get(null); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link OrganizationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public OrganizationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -145,7 +145,7 @@ public Organization post(@jakarta.annotation.Nonnull final Organization body, @j return this.requestAdapter.send(requestInfo, errorMapping, Organization::createFromDiscriminatorValue); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -153,7 +153,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -199,7 +199,7 @@ public OrganizationRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri return new OrganizationRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java index 079e175669c..c8b48c57fe4 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/OrganizationItemRequestBuilder.java @@ -136,21 +136,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization get() { return get(null); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Organization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Organization get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -207,7 +207,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -215,7 +215,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -267,7 +267,7 @@ public OrganizationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/bannerlogo/BannerLogoRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/bannerlogo/BannerLogoRequestBuilder.java index a5f45d634e0..1045ee91d47 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/bannerlogo/BannerLogoRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/bannerlogo/BannerLogoRequestBuilder.java @@ -54,21 +54,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InputStream get() { return get(null); } /** - * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 8e71f30448b..88f8af53e19 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 29e7441c1f3..b403f586f58 100644 --- a/src/main/java/com/microsoft/graph/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index a71c5780be0..68b00e4b3ba 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java index 66dbe5c9220..7a40b777c50 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index e41ca038924..153a7987fc9 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 5b76d1f3119..8877d83f3df 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java index 3b4e99bfa57..08ea32726b9 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 13f5869cba1..ee623611418 100644 --- a/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/RelatedHostsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/RelatedHostsRequestBuilder.java index e0edd27a492..6c0ac006f78 100644 --- a/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/RelatedHostsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/RelatedHostsRequestBuilder.java @@ -59,19 +59,21 @@ public RelatedHostsRequestBuilder(@jakarta.annotation.Nonnull final String rawUr super(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @return a {@link HostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public HostCollectionResponse get() { return get(null); } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link HostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public HostCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -81,7 +83,7 @@ public HostCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, HostCollectionResponse::createFromDiscriminatorValue); } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -89,7 +91,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -111,7 +113,7 @@ public RelatedHostsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri return new RelatedHostsRequestBuilder(rawUrl, requestAdapter); } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/item/HostItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/item/HostItemRequestBuilder.java index 28fa6cd3b2f..8da4ba022cd 100644 --- a/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/item/HostItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/security/threatintelligence/sslcertificates/item/relatedhosts/item/HostItemRequestBuilder.java @@ -37,7 +37,7 @@ public HostItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts/{host%2Did}{?%24expand,%24select}", rawUrl); } /** - * The hosts related with this sslCertificate. + * The host resources related with this sslCertificate. * @return a {@link Host} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public Host get() { return get(null); } /** - * The hosts related with this sslCertificate. + * The host resources related with this sslCertificate. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Host} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public Host get(@jakarta.annotation.Nullable final java.util.function.Consumer pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String path1) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters); - this.pathParameters.put("path1", path1); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} 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 GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", rawUrl); - } - /** - * Invoke function getByPath - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get() { - return get(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Site::createFromDiscriminatorValue); - } - /** - * Invoke function getByPath - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getByPath - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetByPathWithPath1RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index 16328b40356..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.analytics; - -import com.microsoft.graph.models.ItemAnalytics; -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 manage the analytics property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} 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 AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property analytics for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property analytics for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return patch(body, null); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Delete navigation property analytics for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property analytics for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this site. - * @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 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; - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Analytics about the view activities that took place on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 34c0daa426d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.columns; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -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 manage the columns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @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 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; - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions reusable across lists under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index 7dcfe4379af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes; - -import com.microsoft.graph.models.ContentType; -import com.microsoft.graph.models.ContentTypeCollectionResponse; -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 manage the contentTypes property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} 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 ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types defined for this site. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body) { - return post(body, null); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types defined for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types defined for this site. - * @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 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; - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types defined for this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 8a2d86215f2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java deleted file mode 100644 index 72d2f75397c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.drive; - -import com.microsoft.graph.models.Drive; -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 manage the drive property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveRequestBuilder} 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 DriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", rawUrl); - } - /** - * The default drive (document library) for this site. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get() { - return get(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * The default drive (document library) for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default drive (document library) for this site. - * @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 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 DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveRequestBuilder(rawUrl, requestAdapter); - } - /** - * The default drive (document library) for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java deleted file mode 100644 index d329a94b883..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.drives; - -import com.microsoft.graph.models.DriveCollectionResponse; -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 manage the drives property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DrivesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DrivesRequestBuilder} 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 DrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get() { - return get(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of drives (document libraries) under this site. - * @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 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 DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DrivesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of drives (document libraries) under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java deleted file mode 100644 index 7a06b4ad833..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns; - -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -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 manage the externalColumns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} 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 ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get externalColumns from sites - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * Get externalColumns from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Get externalColumns from sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get externalColumns from sites - * @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 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 ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExternalColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get externalColumns from sites - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java deleted file mode 100644 index f437df3367c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.items; - -import com.microsoft.graph.models.BaseItemCollectionResponse; -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 manage the items property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} 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 ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get() { - return get(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @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 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 ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 95ba8394ea0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java deleted file mode 100644 index 16f3bd9a573..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.lists; - -import com.microsoft.graph.models.List; -import com.microsoft.graph.models.ListCollectionResponse; -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 manage the lists property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ListsRequestBuilder} 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 ListsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of lists under this site. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get() { - return get(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body) { - return post(body, null); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * The collection of lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of lists under this site. - * @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 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; - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of lists under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java deleted file mode 100644 index 1eb96a099ff..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.onenote; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Onenote; -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 manage the onenote property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OnenoteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link OnenoteRequestBuilder} 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 OnenoteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property onenote for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property onenote for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Calls the OneNote service for notebook related operations. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get() { - return get(null); - } - /** - * Calls the OneNote service for notebook related operations. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body) { - return patch(body, null); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Delete navigation property onenote for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property onenote for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Calls the OneNote service for notebook related operations. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Calls the OneNote service for notebook related operations. - * @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 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; - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OnenoteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Calls the OneNote service for notebook related operations. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java deleted file mode 100644 index 0d44a2de3da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.operations; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.RichLongRunningOperation; -import com.microsoft.graph.models.RichLongRunningOperationCollectionResponse; -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 manage the operations property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} 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 OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of long-running operations on the site. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get() { - return get(null); - } - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * The collection of long-running operations on the site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long-running operations on the site. - * @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 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; - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of long-running operations on the site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java deleted file mode 100644 index a3f7d228027..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.pages; - -import com.microsoft.graph.models.BaseSitePage; -import com.microsoft.graph.models.BaseSitePageCollectionResponse; -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 manage the pages property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PagesRequestBuilder} 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 PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get() { - return get(null); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { - return post(body, null); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of pages in the baseSitePages list in this site. - * @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 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; - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PagesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of pages in the baseSitePages list in this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index ee288b7ca8a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.permissions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.graph.models.PermissionCollectionResponse; -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 manage the permissions property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} 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 PermissionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get() { - return get(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, PermissionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body) { - return post(body, null); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The permissions associated with the site. Nullable. - * @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 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; - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The permissions associated with the site. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java deleted file mode 100644 index 00f42e71606..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.sites; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.SiteCollectionResponse; -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 manage the sites property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SitesRequestBuilder} 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 SitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get() { - return get(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SiteCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of the sub-sites under this site. - * @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 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 SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SitesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of the sub-sites under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java deleted file mode 100644 index d93069fb30f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.termstore; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.termstore.Store; -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 manage the termStore property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TermStoreRequestBuilder} 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 TermStoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property termStore for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property termStore for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The default termStore under this site. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get() { - return get(null); - } - /** - * The default termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body) { - return patch(body, null); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Delete navigation property termStore for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property termStore for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The default termStore under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default termStore under this site. - * @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 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; - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The default termStore under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java deleted file mode 100644 index d4b9ec89bc5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstores/TermStoresRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.sites.item.getbypathwithpath.getbypathwithpath1.termstores; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.termstore.Store; -import com.microsoft.graph.models.termstore.StoreCollectionResponse; -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 manage the termStores property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoresRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoresRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoresRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TermStoresRequestBuilder} 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 TermStoresRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of termStores under this site. - * @return a {@link StoreCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public StoreCollectionResponse get() { - return get(null); - } - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link StoreCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public StoreCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, StoreCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store post(@jakarta.annotation.Nonnull final Store body) { - return post(body, null); - } - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store post(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * The collection of termStores under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of termStores under this site. - * @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 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; - } - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TermStoresRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoresRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoresRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of termStores under this site. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/bookingbusinesses/item/appointments/item/BookingAppointmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/bookingbusinesses/item/appointments/item/BookingAppointmentItemRequestBuilder.java index d8a7ab63918..66514f67175 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/bookingbusinesses/item/appointments/item/BookingAppointmentItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/bookingbusinesses/item/appointments/item/BookingAppointmentItemRequestBuilder.java @@ -66,7 +66,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The start and end properties are always returned in UTC. * @return a {@link BookingAppointment} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -76,7 +76,7 @@ public BookingAppointment get() { return get(null); } /** - * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The start and end properties are always returned in UTC. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link BookingAppointment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -137,7 +137,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The start and end properties are always returned in UTC. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -145,7 +145,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The start and end properties are always returned in UTC. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -197,7 +197,7 @@ public BookingAppointmentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + * Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The start and end properties are always returned in UTC. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/VirtualEventsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/VirtualEventsRequestBuilder.java index c5c12e8c216..e62aef6a03a 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/VirtualEventsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/VirtualEventsRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.VirtualEventsRoot; import com.microsoft.graph.solutions.virtualevents.events.EventsRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.TownhallsRequestBuilder; import com.microsoft.graph.solutions.virtualevents.webinars.WebinarsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -30,6 +31,14 @@ public class VirtualEventsRequestBuilder extends BaseRequestBuilder { public EventsRequestBuilder events() { return new EventsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + * @return a {@link TownhallsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TownhallsRequestBuilder townhalls() { + return new TownhallsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the webinars property of the microsoft.graph.virtualEventsRoot entity. * @return a {@link WebinarsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/VirtualEventItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/VirtualEventItemRequestBuilder.java index 42cecebb307..c584a763194 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/VirtualEventItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/VirtualEventItemRequestBuilder.java @@ -2,6 +2,9 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.VirtualEvent; +import com.microsoft.graph.solutions.virtualevents.events.item.cancel.CancelRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.events.item.presenters.PresentersRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.events.item.publish.PublishRequestBuilder; import com.microsoft.graph.solutions.virtualevents.events.item.sessions.SessionsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -21,6 +24,30 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class VirtualEventItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + * @return a {@link CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder cancel() { + return new CancelRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @return a {@link PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder presenters() { + return new PresentersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the publish method. + * @return a {@link PublishRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PublishRequestBuilder publish() { + return new PublishRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. * @return a {@link SessionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/cancel/CancelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/cancel/CancelRequestBuilder.java new file mode 100644 index 00000000000..23c320c5f54 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/cancel/CancelRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.solutions.virtualevents.events.item.cancel; + +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.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 cancel method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CancelRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CancelRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CancelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/cancel", pathParameters); + } + /** + * Instantiates a new {@link CancelRequestBuilder} 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 CancelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/cancel", rawUrl); + } + /** + * Invoke action cancel + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Invoke action cancel + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CancelRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/PresentersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/PresentersRequestBuilder.java new file mode 100644 index 00000000000..628f178e8e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/PresentersRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.solutions.virtualevents.events.item.presenters; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +import com.microsoft.graph.models.VirtualEventPresenterCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.events.item.presenters.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.events.item.presenters.item.VirtualEventPresenterItemRequestBuilder; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return a {@link VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder byVirtualEventPresenterId(@jakarta.annotation.Nonnull final String virtualEventPresenterId) { + Objects.requireNonNull(virtualEventPresenterId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventPresenter%2Did", virtualEventPresenterId); + return new VirtualEventPresenterItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PresentersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} 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 PresentersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The virtual event presenters. + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get() { + return get(null); + } + /** + * The virtual event presenters. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenterCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return post(body, null); + } + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * The virtual event presenters. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The virtual event presenters. + * @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 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; + } + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PresentersRequestBuilder(rawUrl, requestAdapter); + } + /** + * The virtual event presenters. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/count/CountRequestBuilder.java new file mode 100644 index 00000000000..608cb78fa5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.events.item.presenters.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java new file mode 100644 index 00000000000..2d497d7fcaa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.solutions.virtualevents.events.item.presenters.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} 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 VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property presenters for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property presenters for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The virtual event presenters. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get() { + return get(null); + } + /** + * The virtual event presenters. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return patch(body, null); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Delete navigation property presenters for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property presenters for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The virtual event presenters. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The virtual event presenters. + * @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 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; + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventPresenterItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * The virtual event presenters. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/publish/PublishRequestBuilder.java similarity index 80% rename from src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java rename to src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/publish/PublishRequestBuilder.java index 5a7fe69407a..6ef5391130f 100644 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/publish/PublishRequestBuilder.java @@ -1,4 +1,4 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.publish; +package com.microsoft.graph.solutions.virtualevents.events.item.publish; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -24,7 +24,7 @@ public class PublishRequestBuilder extends BaseRequestBuilder { * @param requestAdapter The request adapter to use to execute the requests. */ public PublishRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/publish", pathParameters); + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/publish", pathParameters); } /** * Instantiates a new {@link PublishRequestBuilder} and sets the default values. @@ -32,21 +32,19 @@ public PublishRequestBuilder(@jakarta.annotation.Nonnull final HashMapFind more info here */ public void post() { post(null); } /** - * Publishes a contentType present in the content type hub site. + * Invoke action publish * @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 Find more info here */ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); @@ -55,7 +53,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Publishes a contentType present in the content type hub site. + * Invoke action publish * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +61,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Publishes a contentType present in the content type hub site. + * Invoke action publish * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/SessionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/SessionsRequestBuilder.java index 3b9e81c8073..815adcd58cc 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/SessionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/SessionsRequestBuilder.java @@ -60,7 +60,7 @@ public SessionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @return a {@link VirtualEventSessionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public VirtualEventSessionCollectionResponse get() { return get(null); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventSessionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public VirtualEventSession post(@jakarta.annotation.Nonnull final VirtualEventSe return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public SessionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r return new SessionsRequestBuilder(rawUrl, requestAdapter); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/item/VirtualEventSessionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/item/VirtualEventSessionItemRequestBuilder.java index 81581acc50c..edd4270a655 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/item/VirtualEventSessionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/events/item/sessions/item/VirtualEventSessionItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @return a {@link VirtualEventSession} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public VirtualEventSession get() { return get(null); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventSession} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Sessions for the virtual event. + * The sessions for the virtual event. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public VirtualEventSessionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Sessions for the virtual event. + * The sessions for the virtual event. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/TownhallsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/TownhallsRequestBuilder.java new file mode 100644 index 00000000000..574679140fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/TownhallsRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventTownhall; +import com.microsoft.graph.models.VirtualEventTownhallCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.townhalls.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.VirtualEventTownhallItemRequestBuilder; +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 manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class TownhallsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + * @param virtualEventTownhallId The unique identifier of virtualEventTownhall + * @return a {@link VirtualEventTownhallItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventTownhallItemRequestBuilder byVirtualEventTownhallId(@jakarta.annotation.Nonnull final String virtualEventTownhallId) { + Objects.requireNonNull(virtualEventTownhallId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventTownhall%2Did", virtualEventTownhallId); + return new VirtualEventTownhallItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link TownhallsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public TownhallsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link TownhallsRequestBuilder} 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 TownhallsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @return a {@link VirtualEventTownhallCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventTownhallCollectionResponse get() { + return get(null); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventTownhallCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventTownhallCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventTownhallCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new virtualEventTownhall object in draft mode. + * @param body The request body + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall post(@jakarta.annotation.Nonnull final VirtualEventTownhall body) { + return post(body, null); + } + /** + * Create a new virtualEventTownhall object in draft mode. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall post(@jakarta.annotation.Nonnull final VirtualEventTownhall body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventTownhall::createFromDiscriminatorValue); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @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 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; + } + /** + * Create a new virtualEventTownhall object in draft mode. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventTownhall body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new virtualEventTownhall object in draft mode. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventTownhall body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 TownhallsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public TownhallsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new TownhallsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/count/CountRequestBuilder.java new file mode 100644 index 00000000000..fa5cad9cab4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java new file mode 100644 index 00000000000..24173cabeaf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java @@ -0,0 +1,250 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventTownhall; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters.PresentersRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.SessionsRequestBuilder; +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 manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventTownhallItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @return a {@link PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder presenters() { + return new PresentersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + * @return a {@link SessionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SessionsRequestBuilder sessions() { + return new SessionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link VirtualEventTownhallItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventTownhallItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventTownhallItemRequestBuilder} 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 VirtualEventTownhallItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property townhalls for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property townhalls for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall get() { + return get(null); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventTownhall::createFromDiscriminatorValue); + } + /** + * Update the properties of a virtualEventTownhall object. + * @param body The request body + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall patch(@jakarta.annotation.Nonnull final VirtualEventTownhall body) { + return patch(body, null); + } + /** + * Update the properties of a virtualEventTownhall object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventTownhall} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventTownhall patch(@jakarta.annotation.Nonnull final VirtualEventTownhall body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventTownhall::createFromDiscriminatorValue); + } + /** + * Delete navigation property townhalls for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property townhalls for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + * @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 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; + } + /** + * Update the properties of a virtualEventTownhall object. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventTownhall body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a virtualEventTownhall object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventTownhall body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventTownhallItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventTownhallItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventTownhallItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a virtualEventTownhall object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/PresentersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/PresentersRequestBuilder.java new file mode 100644 index 00000000000..34bbdc71f45 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/PresentersRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +import com.microsoft.graph.models.VirtualEventPresenterCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters.item.VirtualEventPresenterItemRequestBuilder; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return a {@link VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder byVirtualEventPresenterId(@jakarta.annotation.Nonnull final String virtualEventPresenterId) { + Objects.requireNonNull(virtualEventPresenterId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventPresenter%2Did", virtualEventPresenterId); + return new VirtualEventPresenterItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PresentersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} 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 PresentersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the list of all virtualEventPresenter objects associated with a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get() { + return get(null); + } + /** + * Get the list of all virtualEventPresenter objects associated with a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenterCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return post(body, null); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Get the list of all virtualEventPresenter objects associated with a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the list of all virtualEventPresenter objects associated with a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @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 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; + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PresentersRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the list of all virtualEventPresenter objects associated with a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/count/CountRequestBuilder.java new file mode 100644 index 00000000000..1a79e82c62d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java new file mode 100644 index 00000000000..53e45ffbaab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java @@ -0,0 +1,232 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.presenters.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} 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 VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a virtualEventPresenter from a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a virtualEventPresenter from a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @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 Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a virtualEventPresenter object. Currently the supported virtual event types are: - virtualEventTownhall- virtualEventWebinar + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get() { + return get(null); + } + /** + * Read the properties and relationships of a virtualEventPresenter object. Currently the supported virtual event types are: - virtualEventTownhall- virtualEventWebinar + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return patch(body, null); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Delete a virtualEventPresenter from a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a virtualEventPresenter from a virtual event. Currently the supported virtual event types are:- virtualEventTownhall- virtualEventWebinar + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a virtualEventPresenter object. Currently the supported virtual event types are: - virtualEventTownhall- virtualEventWebinar + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a virtualEventPresenter object. Currently the supported virtual event types are: - virtualEventTownhall- virtualEventWebinar + * @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 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; + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property presenters in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventPresenterItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a virtualEventPresenter object. Currently the supported virtual event types are: - virtualEventTownhall- virtualEventWebinar + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/SessionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/SessionsRequestBuilder.java new file mode 100644 index 00000000000..0ffa481875b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/SessionsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventSession; +import com.microsoft.graph.models.VirtualEventSessionCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.VirtualEventSessionItemRequestBuilder; +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 manage the sessions property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SessionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + * @param virtualEventSessionId The unique identifier of virtualEventSession + * @return a {@link VirtualEventSessionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventSessionItemRequestBuilder byVirtualEventSessionId(@jakarta.annotation.Nonnull final String virtualEventSessionId) { + Objects.requireNonNull(virtualEventSessionId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventSession%2Did", virtualEventSessionId); + return new VirtualEventSessionItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link SessionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SessionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link SessionsRequestBuilder} 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 SessionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The sessions for the virtual event. + * @return a {@link VirtualEventSessionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSessionCollectionResponse get() { + return get(null); + } + /** + * The sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSessionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSessionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSessionCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession post(@jakarta.annotation.Nonnull final VirtualEventSession body) { + return post(body, null); + } + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession post(@jakarta.annotation.Nonnull final VirtualEventSession body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); + } + /** + * The sessions for the virtual event. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The sessions for the virtual event. + * @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 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; + } + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventSession body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventSession body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 SessionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SessionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SessionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The sessions for the virtual event. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/count/CountRequestBuilder.java new file mode 100644 index 00000000000..667488b970b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/VirtualEventSessionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/VirtualEventSessionItemRequestBuilder.java new file mode 100644 index 00000000000..b5d2b06a1c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/VirtualEventSessionItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventSession; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.AttendanceReportsRequestBuilder; +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 manage the sessions property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventSessionItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + * @return a {@link AttendanceReportsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceReportsRequestBuilder attendanceReports() { + return new AttendanceReportsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link VirtualEventSessionItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventSessionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventSessionItemRequestBuilder} 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 VirtualEventSessionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property sessions for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property sessions for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The sessions for the virtual event. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession get() { + return get(null); + } + /** + * The sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); + } + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession patch(@jakarta.annotation.Nonnull final VirtualEventSession body) { + return patch(body, null); + } + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession patch(@jakarta.annotation.Nonnull final VirtualEventSession body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); + } + /** + * Delete navigation property sessions for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property sessions for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The sessions for the virtual event. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The sessions for the virtual event. + * @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 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; + } + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventSession body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventSession body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventSessionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventSessionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventSessionItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * The sessions for the virtual event. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/AttendanceReportsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/AttendanceReportsRequestBuilder.java new file mode 100644 index 00000000000..40f142cfe26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/AttendanceReportsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports; + +import com.microsoft.graph.models.MeetingAttendanceReport; +import com.microsoft.graph.models.MeetingAttendanceReportCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.MeetingAttendanceReportItemRequestBuilder; +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 manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AttendanceReportsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + * @param meetingAttendanceReportId The unique identifier of meetingAttendanceReport + * @return a {@link MeetingAttendanceReportItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MeetingAttendanceReportItemRequestBuilder byMeetingAttendanceReportId(@jakarta.annotation.Nonnull final String meetingAttendanceReportId) { + Objects.requireNonNull(meetingAttendanceReportId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("meetingAttendanceReport%2Did", meetingAttendanceReportId); + return new MeetingAttendanceReportItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AttendanceReportsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AttendanceReportsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AttendanceReportsRequestBuilder} 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 AttendanceReportsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The attendance reports of an online meeting. Read-only. + * @return a {@link MeetingAttendanceReportCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReportCollectionResponse get() { + return get(null); + } + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MeetingAttendanceReportCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReportCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MeetingAttendanceReportCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport post(@jakarta.annotation.Nonnull final MeetingAttendanceReport body) { + return post(body, null); + } + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport post(@jakarta.annotation.Nonnull final MeetingAttendanceReport body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MeetingAttendanceReport::createFromDiscriminatorValue); + } + /** + * The attendance reports of an online meeting. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The attendance reports of an online meeting. Read-only. + * @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 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; + } + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MeetingAttendanceReport body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MeetingAttendanceReport body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 AttendanceReportsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceReportsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AttendanceReportsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The attendance reports of an online meeting. Read-only. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/count/CountRequestBuilder.java new file mode 100644 index 00000000000..e74fac6c5ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java new file mode 100644 index 00000000000..e72894c3eae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item; + +import com.microsoft.graph.models.MeetingAttendanceReport; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords.AttendanceRecordsRequestBuilder; +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 manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class MeetingAttendanceReportItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + * @return a {@link AttendanceRecordsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceRecordsRequestBuilder attendanceRecords() { + return new AttendanceRecordsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link MeetingAttendanceReportItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public MeetingAttendanceReportItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link MeetingAttendanceReportItemRequestBuilder} 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 MeetingAttendanceReportItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property attendanceReports for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property attendanceReports for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The attendance reports of an online meeting. Read-only. + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport get() { + return get(null); + } + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MeetingAttendanceReport::createFromDiscriminatorValue); + } + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport patch(@jakarta.annotation.Nonnull final MeetingAttendanceReport body) { + return patch(body, null); + } + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link MeetingAttendanceReport} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public MeetingAttendanceReport patch(@jakarta.annotation.Nonnull final MeetingAttendanceReport body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, MeetingAttendanceReport::createFromDiscriminatorValue); + } + /** + * Delete navigation property attendanceReports for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property attendanceReports for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The attendance reports of an online meeting. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The attendance reports of an online meeting. Read-only. + * @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 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; + } + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MeetingAttendanceReport body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MeetingAttendanceReport body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 MeetingAttendanceReportItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public MeetingAttendanceReportItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new MeetingAttendanceReportItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * The attendance reports of an online meeting. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/AttendanceRecordsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/AttendanceRecordsRequestBuilder.java new file mode 100644 index 00000000000..0ae7168bd2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/AttendanceRecordsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords; + +import com.microsoft.graph.models.AttendanceRecord; +import com.microsoft.graph.models.AttendanceRecordCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords.item.AttendanceRecordItemRequestBuilder; +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 manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AttendanceRecordsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + * @param attendanceRecordId The unique identifier of attendanceRecord + * @return a {@link AttendanceRecordItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceRecordItemRequestBuilder byAttendanceRecordId(@jakarta.annotation.Nonnull final String attendanceRecordId) { + Objects.requireNonNull(attendanceRecordId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("attendanceRecord%2Did", attendanceRecordId); + return new AttendanceRecordItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AttendanceRecordsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AttendanceRecordsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AttendanceRecordsRequestBuilder} 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 AttendanceRecordsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * List of attendance records of an attendance report. Read-only. + * @return a {@link AttendanceRecordCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecordCollectionResponse get() { + return get(null); + } + /** + * List of attendance records of an attendance report. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AttendanceRecordCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecordCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AttendanceRecordCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord post(@jakarta.annotation.Nonnull final AttendanceRecord body) { + return post(body, null); + } + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord post(@jakarta.annotation.Nonnull final AttendanceRecord body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AttendanceRecord::createFromDiscriminatorValue); + } + /** + * List of attendance records of an attendance report. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List of attendance records of an attendance report. Read-only. + * @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 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; + } + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AttendanceRecord body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AttendanceRecord body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 AttendanceRecordsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceRecordsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AttendanceRecordsRequestBuilder(rawUrl, requestAdapter); + } + /** + * List of attendance records of an attendance report. Read-only. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/count/CountRequestBuilder.java new file mode 100644 index 00000000000..5b04eb4858a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/item/AttendanceRecordItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/item/AttendanceRecordItemRequestBuilder.java new file mode 100644 index 00000000000..6ced4fe62b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/townhalls/item/sessions/item/attendancereports/item/attendancerecords/item/AttendanceRecordItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.solutions.virtualevents.townhalls.item.sessions.item.attendancereports.item.attendancerecords.item; + +import com.microsoft.graph.models.AttendanceRecord; +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 manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AttendanceRecordItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AttendanceRecordItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AttendanceRecordItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link AttendanceRecordItemRequestBuilder} 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 AttendanceRecordItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property attendanceRecords for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property attendanceRecords for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * List of attendance records of an attendance report. Read-only. + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord get() { + return get(null); + } + /** + * List of attendance records of an attendance report. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AttendanceRecord::createFromDiscriminatorValue); + } + /** + * Update the navigation property attendanceRecords in solutions + * @param body The request body + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord patch(@jakarta.annotation.Nonnull final AttendanceRecord body) { + return patch(body, null); + } + /** + * Update the navigation property attendanceRecords in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AttendanceRecord} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AttendanceRecord patch(@jakarta.annotation.Nonnull final AttendanceRecord body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AttendanceRecord::createFromDiscriminatorValue); + } + /** + * Delete navigation property attendanceRecords for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property attendanceRecords for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * List of attendance records of an attendance report. Read-only. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List of attendance records of an attendance report. Read-only. + * @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 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; + } + /** + * Update the navigation property attendanceRecords in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AttendanceRecord body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property attendanceRecords in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AttendanceRecord body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 AttendanceRecordItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttendanceRecordItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AttendanceRecordItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * List of attendance records of an attendance report. Read-only. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/WebinarsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/WebinarsRequestBuilder.java index 76e85e947ff..7ea67759cf0 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/WebinarsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/WebinarsRequestBuilder.java @@ -108,21 +108,23 @@ public GetByUserRoleWithRoleRequestBuilder getByUserRoleWithRole(@jakarta.annota return new GetByUserRoleWithRoleRequestBuilder(pathParameters, requestAdapter, role); } /** - * Create new navigation property to webinars for solutions + * Create a new virtualEventWebinar object in draft mode. * @param body The request body * @return a {@link VirtualEventWebinar} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventWebinar post(@jakarta.annotation.Nonnull final VirtualEventWebinar body) { return post(body, null); } /** - * Create new navigation property to webinars for solutions + * Create a new virtualEventWebinar object in draft mode. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventWebinar} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventWebinar post(@jakarta.annotation.Nonnull final VirtualEventWebinar body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -153,7 +155,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create new navigation property to webinars for solutions + * Create a new virtualEventWebinar object in draft mode. * @param body The request body * @return a {@link RequestInformation} */ @@ -162,7 +164,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create new navigation property to webinars for solutions + * Create a new virtualEventWebinar object in draft mode. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/VirtualEventWebinarItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/VirtualEventWebinarItemRequestBuilder.java index 17becaab713..0d8830149f7 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/VirtualEventWebinarItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/VirtualEventWebinarItemRequestBuilder.java @@ -2,7 +2,11 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.VirtualEventWebinar; +import com.microsoft.graph.solutions.virtualevents.webinars.item.presenters.PresentersRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.RegistrationConfigurationRequestBuilder; import com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.RegistrationsRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithemail.RegistrationsWithEmailRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithuserid.RegistrationsWithUserIdRequestBuilder; import com.microsoft.graph.solutions.virtualevents.webinars.item.sessions.SessionsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -22,6 +26,22 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class VirtualEventWebinarItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @return a {@link PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder presenters() { + return new PresentersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. + * @return a {@link RegistrationConfigurationRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationConfigurationRequestBuilder registrationConfiguration() { + return new RegistrationConfigurationRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. * @return a {@link RegistrationsRequestBuilder} @@ -97,21 +117,23 @@ public VirtualEventWebinar get(@jakarta.annotation.Nullable final java.util.func return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinar::createFromDiscriminatorValue); } /** - * Update the navigation property webinars in solutions + * Update the properties of a virtualEventWebinar object. * @param body The request body * @return a {@link VirtualEventWebinar} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventWebinar patch(@jakarta.annotation.Nonnull final VirtualEventWebinar body) { return patch(body, null); } /** - * Update the navigation property webinars in solutions + * Update the properties of a virtualEventWebinar object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventWebinar} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventWebinar patch(@jakarta.annotation.Nonnull final VirtualEventWebinar body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -121,6 +143,26 @@ public VirtualEventWebinar patch(@jakarta.annotation.Nonnull final VirtualEventW errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinar::createFromDiscriminatorValue); } + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param email Alternate key of virtualEventRegistration + * @return a {@link RegistrationsWithEmailRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationsWithEmailRequestBuilder registrationsWithEmail(@jakarta.annotation.Nonnull final String email) { + Objects.requireNonNull(email); + return new RegistrationsWithEmailRequestBuilder(pathParameters, requestAdapter, email); + } + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param userId Alternate key of virtualEventRegistration + * @return a {@link RegistrationsWithUserIdRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationsWithUserIdRequestBuilder registrationsWithUserId(@jakarta.annotation.Nonnull final String userId) { + Objects.requireNonNull(userId); + return new RegistrationsWithUserIdRequestBuilder(pathParameters, requestAdapter, userId); + } /** * Delete navigation property webinars for solutions * @return a {@link RequestInformation} @@ -162,7 +204,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the navigation property webinars in solutions + * Update the properties of a virtualEventWebinar object. * @param body The request body * @return a {@link RequestInformation} */ @@ -171,7 +213,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the navigation property webinars in solutions + * Update the properties of a virtualEventWebinar object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/PresentersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/PresentersRequestBuilder.java new file mode 100644 index 00000000000..a4f287d4ed4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/PresentersRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.presenters; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +import com.microsoft.graph.models.VirtualEventPresenterCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.webinars.item.presenters.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.presenters.item.VirtualEventPresenterItemRequestBuilder; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return a {@link VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder byVirtualEventPresenterId(@jakarta.annotation.Nonnull final String virtualEventPresenterId) { + Objects.requireNonNull(virtualEventPresenterId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventPresenter%2Did", virtualEventPresenterId); + return new VirtualEventPresenterItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PresentersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link PresentersRequestBuilder} 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 PresentersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The virtual event presenters. + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get() { + return get(null); + } + /** + * The virtual event presenters. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenterCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenterCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenterCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return post(body, null); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter post(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * The virtual event presenters. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The virtual event presenters. + * @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 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; + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new virtualEventPresenter object on a virtual event. Currently, the following types of virtual events are supported: - virtualEventTownhall- virtualEventWebinar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 PresentersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PresentersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PresentersRequestBuilder(rawUrl, requestAdapter); + } + /** + * The virtual event presenters. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/count/CountRequestBuilder.java new file mode 100644 index 00000000000..c917ccdf360 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.presenters.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java new file mode 100644 index 00000000000..622d6902082 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/presenters/item/VirtualEventPresenterItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.presenters.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventPresenter; +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 manage the presenters property of the microsoft.graph.virtualEvent entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventPresenterItemRequestBuilder} 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 VirtualEventPresenterItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property presenters for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property presenters for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The virtual event presenters. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get() { + return get(null); + } + /** + * The virtual event presenters. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Update the properties of a virtualEventPresenter object. Currently the supported virtual event types are:- virtualEventWebinar. + * @param body The request body + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return patch(body, null); + } + /** + * Update the properties of a virtualEventPresenter object. Currently the supported virtual event types are:- virtualEventWebinar. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventPresenter} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventPresenter patch(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventPresenter::createFromDiscriminatorValue); + } + /** + * Delete navigation property presenters for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property presenters for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The virtual event presenters. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The virtual event presenters. + * @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 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; + } + /** + * Update the properties of a virtualEventPresenter object. Currently the supported virtual event types are:- virtualEventWebinar. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of a virtualEventPresenter object. Currently the supported virtual event types are:- virtualEventWebinar. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventPresenter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventPresenterItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventPresenterItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventPresenterItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * The virtual event presenters. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java new file mode 100644 index 00000000000..c380c2a8f19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java @@ -0,0 +1,239 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventWebinarRegistrationConfiguration; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions.QuestionsRequestBuilder; +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 manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RegistrationConfigurationRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @return a {@link QuestionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuestionsRequestBuilder questions() { + return new QuestionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link RegistrationConfigurationRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RegistrationConfigurationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link RegistrationConfigurationRequestBuilder} 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 RegistrationConfigurationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration get() { + return get(null); + } + /** + * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinarRegistrationConfiguration::createFromDiscriminatorValue); + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration patch(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body) { + return patch(body, null); + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration patch(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinarRegistrationConfiguration::createFromDiscriminatorValue); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. + * @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 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; + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 RegistrationConfigurationRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationConfigurationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RegistrationConfigurationRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java new file mode 100644 index 00000000000..e8c2c9a6fc5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventRegistrationQuestionBase; +import com.microsoft.graph.models.VirtualEventRegistrationQuestionBaseCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions.item.VirtualEventRegistrationQuestionBaseItemRequestBuilder; +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 manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QuestionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @param virtualEventRegistrationQuestionBaseId The unique identifier of virtualEventRegistrationQuestionBase + * @return a {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventRegistrationQuestionBaseItemRequestBuilder byVirtualEventRegistrationQuestionBaseId(@jakarta.annotation.Nonnull final String virtualEventRegistrationQuestionBaseId) { + Objects.requireNonNull(virtualEventRegistrationQuestionBaseId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventRegistrationQuestionBase%2Did", virtualEventRegistrationQuestionBaseId); + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link QuestionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QuestionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link QuestionsRequestBuilder} 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 QuestionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @return a {@link VirtualEventRegistrationQuestionBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBaseCollectionResponse get() { + return get(null); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBaseCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBaseCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase post(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return post(body, null); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase post(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @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 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; + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return toPostRequestInformation(body, null); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 QuestionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuestionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QuestionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java new file mode 100644 index 00000000000..f61d1bb9d23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java new file mode 100644 index 00000000000..22642f389d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationconfiguration.questions.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventRegistrationQuestionBase; +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 manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventRegistrationQuestionBaseItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventRegistrationQuestionBaseItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} 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 VirtualEventRegistrationQuestionBaseItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @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 Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Registration questions. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase get() { + return get(null); + } + /** + * Registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase patch(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return patch(body, null); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase patch(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Registration questions. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Registration questions. + * @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 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; + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 VirtualEventRegistrationQuestionBaseItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventRegistrationQuestionBaseItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Registration questions. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/RegistrationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/RegistrationsRequestBuilder.java index 2a1c621498c..f05b3103ed5 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/RegistrationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/RegistrationsRequestBuilder.java @@ -63,7 +63,7 @@ public RegistrationsRequestBuilder(@jakarta.annotation.Nonnull final String rawU * Get a list of all registration records of a webinar. * @return a {@link VirtualEventRegistrationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventRegistrationCollectionResponse get() { @@ -74,7 +74,7 @@ public VirtualEventRegistrationCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventRegistrationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventRegistrationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,21 +84,23 @@ public VirtualEventRegistrationCollectionResponse get(@jakarta.annotation.Nullab return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationCollectionResponse::createFromDiscriminatorValue); } /** - * Create new navigation property to registrations for solutions + * Create a registration record for a registrant of a webinar. This method registers the person for the webinar. * @param body The request body * @return a {@link VirtualEventRegistration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventRegistration post(@jakarta.annotation.Nonnull final VirtualEventRegistration body) { return post(body, null); } /** - * Create new navigation property to registrations for solutions + * Create a registration record for a registrant of a webinar. This method registers the person for the webinar. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventRegistration} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventRegistration post(@jakarta.annotation.Nonnull final VirtualEventRegistration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -129,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create new navigation property to registrations for solutions + * Create a registration record for a registrant of a webinar. This method registers the person for the webinar. * @param body The request body * @return a {@link RequestInformation} */ @@ -138,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create new navigation property to registrations for solutions + * Create a registration record for a registrant of a webinar. This method registers the person for the webinar. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/VirtualEventRegistrationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/VirtualEventRegistrationItemRequestBuilder.java index 51bb20b335a..d0b8eecdd37 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/VirtualEventRegistrationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/VirtualEventRegistrationItemRequestBuilder.java @@ -2,6 +2,8 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.VirtualEventRegistration; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.cancel.CancelRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions.SessionsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -20,6 +22,22 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class VirtualEventRegistrationItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + * @return a {@link CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder cancel() { + return new CancelRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + * @return a {@link SessionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SessionsRequestBuilder sessions() { + return new SessionsRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link VirtualEventRegistrationItemRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/cancel/CancelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/cancel/CancelRequestBuilder.java new file mode 100644 index 00000000000..e58229faa7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/cancel/CancelRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.cancel; + +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.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 cancel method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CancelRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CancelRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CancelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", pathParameters); + } + /** + * Instantiates a new {@link CancelRequestBuilder} 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 CancelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", rawUrl); + } + /** + * Cancel a registrant's registration record for a webinar. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Cancel a registrant's registration record for a webinar. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CancelRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/SessionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/SessionsRequestBuilder.java new file mode 100644 index 00000000000..40205e97e7d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/SessionsRequestBuilder.java @@ -0,0 +1,189 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventSessionCollectionResponse; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions.count.CountRequestBuilder; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions.item.VirtualEventSessionItemRequestBuilder; +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 manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SessionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + * @param virtualEventSessionId The unique identifier of virtualEventSession + * @return a {@link VirtualEventSessionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventSessionItemRequestBuilder byVirtualEventSessionId(@jakarta.annotation.Nonnull final String virtualEventSessionId) { + Objects.requireNonNull(virtualEventSessionId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventSession%2Did", virtualEventSessionId); + return new VirtualEventSessionItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link SessionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SessionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link SessionsRequestBuilder} 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 SessionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + * @return a {@link VirtualEventSessionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventSessionCollectionResponse get() { + return get(null); + } + /** + * Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSessionCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventSessionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSessionCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + * @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 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 SessionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SessionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SessionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/count/CountRequestBuilder.java new file mode 100644 index 00000000000..8c11cba8dac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/item/VirtualEventSessionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/item/VirtualEventSessionItemRequestBuilder.java new file mode 100644 index 00000000000..8a56a766e35 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrations/item/sessions/item/VirtualEventSessionItemRequestBuilder.java @@ -0,0 +1,129 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrations.item.sessions.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventSession; +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 manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventSessionItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventSessionItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventSessionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventSessionItemRequestBuilder} 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 VirtualEventSessionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Sessions for a registration. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession get() { + return get(null); + } + /** + * Sessions for a registration. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventSession} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventSession get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); + } + /** + * Sessions for a registration. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Sessions for a registration. + * @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 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 VirtualEventSessionItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventSessionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventSessionItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Sessions for a registration. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/RegistrationsWithEmailRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/RegistrationsWithEmailRequestBuilder.java new file mode 100644 index 00000000000..9dcdcc51787 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/RegistrationsWithEmailRequestBuilder.java @@ -0,0 +1,241 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithemail; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventRegistration; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithemail.cancel.CancelRequestBuilder; +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 manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RegistrationsWithEmailRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + * @return a {@link CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder cancel() { + return new CancelRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link RegistrationsWithEmailRequestBuilder} and sets the default values. + * @param email Alternate key of virtualEventRegistration + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RegistrationsWithEmailRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String email) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters); + this.pathParameters.put("email", email); + } + /** + * Instantiates a new {@link RegistrationsWithEmailRequestBuilder} 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 RegistrationsWithEmailRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}'){?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property registrations for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration get() { + return get(null); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistration::createFromDiscriminatorValue); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration patch(@jakarta.annotation.Nonnull final VirtualEventRegistration body) { + return patch(body, null); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration patch(@jakarta.annotation.Nonnull final VirtualEventRegistration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistration::createFromDiscriminatorValue); + } + /** + * Delete navigation property registrations for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @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 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; + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistration body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 RegistrationsWithEmailRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationsWithEmailRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RegistrationsWithEmailRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/cancel/CancelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/cancel/CancelRequestBuilder.java new file mode 100644 index 00000000000..d5e85ddd102 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithemail/cancel/CancelRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithemail.cancel; + +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.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 cancel method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CancelRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CancelRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CancelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')/cancel", pathParameters); + } + /** + * Instantiates a new {@link CancelRequestBuilder} 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 CancelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')/cancel", rawUrl); + } + /** + * Cancel a registrant's registration record for a webinar. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Cancel a registrant's registration record for a webinar. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CancelRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/RegistrationsWithUserIdRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/RegistrationsWithUserIdRequestBuilder.java new file mode 100644 index 00000000000..8c75b4683cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/RegistrationsWithUserIdRequestBuilder.java @@ -0,0 +1,241 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithuserid; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.VirtualEventRegistration; +import com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithuserid.cancel.CancelRequestBuilder; +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 manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RegistrationsWithUserIdRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + * @return a {@link CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder cancel() { + return new CancelRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link RegistrationsWithUserIdRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + * @param userId Alternate key of virtualEventRegistration + */ + public RegistrationsWithUserIdRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String userId) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters); + this.pathParameters.put("userId", userId); + } + /** + * Instantiates a new {@link RegistrationsWithUserIdRequestBuilder} 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 RegistrationsWithUserIdRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property registrations for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration get() { + return get(null); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistration::createFromDiscriminatorValue); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration patch(@jakarta.annotation.Nonnull final VirtualEventRegistration body) { + return patch(body, null); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistration patch(@jakarta.annotation.Nonnull final VirtualEventRegistration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistration::createFromDiscriminatorValue); + } + /** + * Delete navigation property registrations for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @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 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; + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistration body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 RegistrationsWithUserIdRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RegistrationsWithUserIdRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RegistrationsWithUserIdRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get the properties and relationships of a virtualEventRegistration object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/cancel/CancelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/cancel/CancelRequestBuilder.java new file mode 100644 index 00000000000..0cc309a6a87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/registrationswithuserid/cancel/CancelRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.solutions.virtualevents.webinars.item.registrationswithuserid.cancel; + +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.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 cancel method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CancelRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CancelRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CancelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')/cancel", pathParameters); + } + /** + * Instantiates a new {@link CancelRequestBuilder} 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 CancelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')/cancel", rawUrl); + } + /** + * Cancel a registrant's registration record for a webinar. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Cancel a registrant's registration record for a webinar. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Cancel a registrant's registration record for a webinar. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 CancelRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CancelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CancelRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/SessionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/SessionsRequestBuilder.java index 18b65a19673..1228ddb351e 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/SessionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/SessionsRequestBuilder.java @@ -60,19 +60,21 @@ public SessionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Read the properties and relationships of a virtualEventSession object. + * Get a list of all virtualEventSession summary objects under a virtual event. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @return a {@link VirtualEventSessionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventSessionCollectionResponse get() { return get(null); } /** - * Read the properties and relationships of a virtualEventSession object. + * Get a list of all virtualEventSession summary objects under a virtual event. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventSessionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public VirtualEventSessionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -107,7 +109,7 @@ public VirtualEventSession post(@jakarta.annotation.Nonnull final VirtualEventSe return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventSession::createFromDiscriminatorValue); } /** - * Read the properties and relationships of a virtualEventSession object. + * Get a list of all virtualEventSession summary objects under a virtual event. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of a virtualEventSession object. + * Get a list of all virtualEventSession summary objects under a virtual event. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +163,7 @@ public SessionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r return new SessionsRequestBuilder(rawUrl, requestAdapter); } /** - * Read the properties and relationships of a virtualEventSession object. + * Get a list of all virtualEventSession summary objects under a virtual event. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The rest of session properties will be null. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/VirtualEventSessionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/VirtualEventSessionItemRequestBuilder.java index 46c073be9dc..e0058621ab2 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/VirtualEventSessionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/VirtualEventSessionItemRequestBuilder.java @@ -64,7 +64,7 @@ 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 virtualEventSession object. + * Read the properties and relationships of a virtualEventSession object. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @return a {@link VirtualEventSession} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -74,7 +74,7 @@ public VirtualEventSession get() { return get(null); } /** - * Read the properties and relationships of a virtualEventSession object. + * Read the properties and relationships of a virtualEventSession object. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventSession} * @throws ODataError When receiving a 4XX or 5XX status code @@ -133,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of a virtualEventSession object. + * Read the properties and relationships of a virtualEventSession object. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -141,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of a virtualEventSession object. + * Read the properties and relationships of a virtualEventSession object. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -193,7 +193,7 @@ public VirtualEventSessionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of a virtualEventSession object. + * Read the properties and relationships of a virtualEventSession object. Currently, the following virtual event types are supported: - virtualEventTownhall- virtualEventWebinar */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java index 4d3c644a5af..7e018e43a66 100644 --- a/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/solutions/virtualevents/webinars/item/sessions/item/attendancereports/item/MeetingAttendanceReportItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @return a {@link MeetingAttendanceReport} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -74,7 +74,7 @@ public MeetingAttendanceReport get() { return get(null); } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MeetingAttendanceReport} * @throws ODataError When receiving a 4XX or 5XX status code @@ -133,7 +133,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -141,7 +141,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -193,7 +193,7 @@ public MeetingAttendanceReportItemRequestBuilder withUrl(@jakarta.annotation.Non public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/storage/StorageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/StorageRequestBuilder.java index b2e92440a0f..6f5c6776e29 100644 --- a/src/main/java/com/microsoft/graph/generated/storage/StorageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/storage/StorageRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.Storage; import com.microsoft.graph.storage.filestorage.FileStorageRequestBuilder; +import com.microsoft.graph.storage.settings.SettingsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +30,14 @@ public class StorageRequestBuilder extends BaseRequestBuilder { public FileStorageRequestBuilder fileStorage() { return new FileStorageRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the settings property of the microsoft.graph.storage entity. + * @return a {@link SettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SettingsRequestBuilder settings() { + return new SettingsRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link StorageRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java index a88bc8fd96a..a75a621cbde 100644 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java @@ -4,6 +4,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.storage.filestorage.containers.item.activate.ActivateRequestBuilder; import com.microsoft.graph.storage.filestorage.containers.item.drive.DriveRequestBuilder; +import com.microsoft.graph.storage.filestorage.containers.item.permanentdelete.PermanentDeleteRequestBuilder; import com.microsoft.graph.storage.filestorage.containers.item.permissions.PermissionsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -39,6 +40,14 @@ public ActivateRequestBuilder activate() { public DriveRequestBuilder drive() { return new DriveRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the permanentDelete method. + * @return a {@link PermanentDeleteRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PermanentDeleteRequestBuilder permanentDelete() { + return new PermanentDeleteRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the permissions property of the microsoft.graph.fileStorageContainer entity. * @return a {@link PermissionsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java index 94fe9711298..27222dc145c 100644 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java @@ -2,17 +2,6 @@ import com.microsoft.graph.models.Drive; import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.BundlesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.following.FollowingRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.ItemsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.ListRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.recent.RecentRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.root.RootRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.sharedwithme.SharedWithMeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.special.SpecialRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -31,86 +20,6 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the bundles property of the microsoft.graph.drive entity. - * @return a {@link BundlesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BundlesRequestBuilder bundles() { - return new BundlesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the following property of the microsoft.graph.drive entity. - * @return a {@link FollowingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FollowingRequestBuilder following() { - return new FollowingRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.drive entity. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder items() { - return new ItemsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the list property of the microsoft.graph.drive entity. - * @return a {@link ListRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListRequestBuilder list() { - return new ListRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the recent method. - * @return a {@link RecentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecentRequestBuilder recent() { - return new RecentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the root property of the microsoft.graph.drive entity. - * @return a {@link RootRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RootRequestBuilder root() { - return new RootRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sharedWithMe method. - * @return a {@link SharedWithMeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SharedWithMeRequestBuilder sharedWithMe() { - return new SharedWithMeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the special property of the microsoft.graph.drive entity. - * @return a {@link SpecialRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SpecialRequestBuilder special() { - return new SpecialRequestBuilder(pathParameters, requestAdapter); - } /** * Instantiates a new {@link DriveRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request @@ -127,24 +36,6 @@ public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } /** * The drive of the resource fileStorageContainer. Read-only. * @return a {@link Drive} @@ -167,61 +58,6 @@ public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer< errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body) { - return patch(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * Provides operations to call the search method. - * @param q Usage: q='{q}' - * @return a {@link SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder searchWithQ(@jakarta.annotation.Nonnull final String q) { - Objects.requireNonNull(q); - return new SearchWithQRequestBuilder(pathParameters, requestAdapter, q); - } - /** - * Delete navigation property drive for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property drive for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } /** * The drive of the resource fileStorageContainer. Read-only. * @return a {@link RequestInformation} @@ -242,30 +78,6 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f requestInfo.headers.tryAdd("Accept", "application/json"); return requestInfo; } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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. @@ -276,12 +88,6 @@ public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU Objects.requireNonNull(rawUrl); return new DriveRequestBuilder(rawUrl, requestAdapter); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } /** * The drive of the resource fileStorageContainer. Read-only. */ @@ -320,10 +126,4 @@ public class GetRequestConfiguration extends BaseRequestConfiguration { @jakarta.annotation.Nullable public GetQueryParameters queryParameters = new GetQueryParameters(); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } } diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java deleted file mode 100644 index ba52f5fe7c0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.bundles; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.DriveItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.item.DriveItemItemRequestBuilder; -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 manage the bundles property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BundlesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the bundles property of the microsoft.graph.drive entity. - * @param driveItemId The unique identifier of driveItem - * @return a {@link DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder byDriveItemId(@jakarta.annotation.Nonnull final String driveItemId) { - Objects.requireNonNull(driveItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItem%2Did", driveItemId); - return new DriveItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link BundlesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BundlesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link BundlesRequestBuilder} 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 BundlesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get() { - return get(null); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to bundles for storage - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body) { - return post(body, null); - } - /** - * Create new navigation property to bundles for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @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 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; - } - /** - * Create new navigation property to bundles for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to bundles for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BundlesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BundlesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BundlesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java deleted file mode 100644 index ae3e7fe23af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 87bb735e429..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.item; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.item.content.ContentRequestBuilder; -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 manage the bundles property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} 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 DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - * @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 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 DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java deleted file mode 100644 index 2108ad6fee5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.bundles.item.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index d69c660ff6f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 1b82d671161..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/createdByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 6c4f049b5b0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 4810b941440..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java deleted file mode 100644 index e9878493cde..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.following; - -import com.microsoft.graph.models.DriveItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.following.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.following.item.DriveItemItemRequestBuilder; -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 manage the following property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FollowingRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the following property of the microsoft.graph.drive entity. - * @param driveItemId The unique identifier of driveItem - * @return a {@link DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder byDriveItemId(@jakarta.annotation.Nonnull final String driveItemId) { - Objects.requireNonNull(driveItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItem%2Did", driveItemId); - return new DriveItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link FollowingRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FollowingRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link FollowingRequestBuilder} 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 FollowingRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get() { - return get(null); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @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 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 FollowingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FollowingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FollowingRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java deleted file mode 100644 index c9309ff4b17..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.following.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 3ffd4ffc977..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.following.item; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.following.item.content.ContentRequestBuilder; -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 manage the following property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} 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 DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - * @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 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 DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of items the user is following. Only in OneDrive for Business. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java deleted file mode 100644 index 90e6db751a7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.following.item.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java deleted file mode 100644 index c4241bfa2b6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.DriveItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.DriveItemItemRequestBuilder; -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 manage the items property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.drive entity. - * @param driveItemId The unique identifier of driveItem - * @return a {@link DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder byDriveItemId(@jakarta.annotation.Nonnull final String driveItemId) { - Objects.requireNonNull(driveItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItem%2Did", driveItemId); - return new DriveItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} 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 ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get() { - return get(null); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body) { - return post(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @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 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; - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * All items contained in the drive. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java deleted file mode 100644 index 5a6cf334842..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 3d718e5100b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,517 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel.AssignSensitivityLabelRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.checkin.CheckinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.checkout.CheckoutRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.ChildrenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.content.ContentRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.copy.CopyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createuploadsession.CreateUploadSessionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.delta.DeltaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.extractsensitivitylabels.ExtractSensitivityLabelsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.follow.FollowRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyinterval.GetActivitiesByIntervalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.invite.InviteRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.listitem.ListItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permanentdelete.PermanentDeleteRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.preview.PreviewRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.restore.RestoreRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.retentionlabel.RetentionLabelRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.SubscriptionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails.ThumbnailsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.unfollow.UnfollowRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.validatepermission.ValidatePermissionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.VersionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.WorkbookRequestBuilder; -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 manage the items property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.driveItem entity. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder analytics() { - return new AnalyticsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the assignSensitivityLabel method. - * @return a {@link AssignSensitivityLabelRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AssignSensitivityLabelRequestBuilder assignSensitivityLabel() { - return new AssignSensitivityLabelRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the checkin method. - * @return a {@link CheckinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CheckinRequestBuilder checkin() { - return new CheckinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the checkout method. - * @return a {@link CheckoutRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CheckoutRequestBuilder checkout() { - return new CheckoutRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the children property of the microsoft.graph.driveItem entity. - * @return a {@link ChildrenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChildrenRequestBuilder children() { - return new ChildrenRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the copy method. - * @return a {@link CopyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CopyRequestBuilder copy() { - return new CopyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the createLink method. - * @return a {@link CreateLinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateLinkRequestBuilder createLink() { - return new CreateLinkRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the createUploadSession method. - * @return a {@link CreateUploadSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateUploadSessionRequestBuilder createUploadSession() { - return new CreateUploadSessionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the delta method. - * @return a {@link DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder delta() { - return new DeltaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the extractSensitivityLabels method. - * @return a {@link ExtractSensitivityLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExtractSensitivityLabelsRequestBuilder extractSensitivityLabels() { - return new ExtractSensitivityLabelsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the follow method. - * @return a {@link FollowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FollowRequestBuilder follow() { - return new FollowRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the getActivitiesByInterval method. - * @return a {@link GetActivitiesByIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalRequestBuilder getActivitiesByInterval() { - return new GetActivitiesByIntervalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the invite method. - * @return a {@link InviteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InviteRequestBuilder invite() { - return new InviteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the listItem property of the microsoft.graph.driveItem entity. - * @return a {@link ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder listItem() { - return new ListItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the permanentDelete method. - * @return a {@link PermanentDeleteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermanentDeleteRequestBuilder permanentDelete() { - return new PermanentDeleteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the preview method. - * @return a {@link PreviewRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PreviewRequestBuilder preview() { - return new PreviewRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the restore method. - * @return a {@link RestoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreRequestBuilder restore() { - return new RestoreRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. - * @return a {@link RetentionLabelRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RetentionLabelRequestBuilder retentionLabel() { - return new RetentionLabelRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. - * @return a {@link SubscriptionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionsRequestBuilder subscriptions() { - return new SubscriptionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. - * @return a {@link ThumbnailsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ThumbnailsRequestBuilder thumbnails() { - return new ThumbnailsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the unfollow method. - * @return a {@link UnfollowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnfollowRequestBuilder unfollow() { - return new UnfollowRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the validatePermission method. - * @return a {@link ValidatePermissionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValidatePermissionRequestBuilder validatePermission() { - return new ValidatePermissionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the versions property of the microsoft.graph.driveItem entity. - * @return a {@link VersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VersionsRequestBuilder versions() { - return new VersionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the workbook property of the microsoft.graph.driveItem entity. - * @return a {@link WorkbookRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookRequestBuilder workbook() { - return new WorkbookRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} 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 DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property items for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property items for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Provides operations to call the delta method. - * @param token Usage: token='{token}' - * @return a {@link DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder deltaWithToken(@jakarta.annotation.Nonnull final String token) { - Objects.requireNonNull(token); - return new DeltaWithTokenRequestBuilder(pathParameters, requestAdapter, token); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Provides operations to call the getActivitiesByInterval method. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param startDateTime Usage: startDateTime='{startDateTime}' - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(@jakarta.annotation.Nonnull final String endDateTime, @jakarta.annotation.Nonnull final String interval, @jakarta.annotation.Nonnull final String startDateTime) { - Objects.requireNonNull(endDateTime); - Objects.requireNonNull(interval); - Objects.requireNonNull(startDateTime); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(pathParameters, requestAdapter, endDateTime, interval, startDateTime); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem patch(@jakarta.annotation.Nonnull final DriveItem body) { - return patch(body, null); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem patch(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Provides operations to call the search method. - * @param q Usage: q='{q}' - * @return a {@link SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder searchWithQ(@jakarta.annotation.Nonnull final String q) { - Objects.requireNonNull(q); - return new SearchWithQRequestBuilder(pathParameters, requestAdapter, q); - } - /** - * Delete navigation property items for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property items for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * All items contained in the drive. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the drive. Read-only. Nullable. - * @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 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; - } - /** - * Update the navigation property items in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DriveItem body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * All items contained in the drive. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index a3de452c500..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics; - -import com.microsoft.graph.models.ItemAnalytics; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.alltime.AllTimeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.ItemActivityStatsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.lastsevendays.LastSevenDaysRequestBuilder; -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 manage the analytics property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. - * @return a {@link AllTimeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AllTimeRequestBuilder allTime() { - return new AllTimeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. - * @return a {@link ItemActivityStatsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityStatsRequestBuilder itemActivityStats() { - return new ItemActivityStatsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. - * @return a {@link LastSevenDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastSevenDaysRequestBuilder lastSevenDays() { - return new LastSevenDaysRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} 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 AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property analytics for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property analytics for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Analytics about the view activities that took place on this item. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Update the navigation property analytics in storage - * @param body The request body - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return patch(body, null); - } - /** - * Update the navigation property analytics in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Delete navigation property analytics for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property analytics for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Analytics about the view activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this item. - * @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 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; - } - /** - * Update the navigation property analytics in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property analytics in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Analytics about the view activities that took place on this item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java deleted file mode 100644 index c3640e20649..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.alltime; - -import com.microsoft.graph.models.ItemActivityStat; -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 manage the allTime property of the microsoft.graph.itemAnalytics entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AllTimeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AllTimeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AllTimeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/allTime{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AllTimeRequestBuilder} 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 AllTimeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/allTime{?%24expand,%24select}", rawUrl); - } - /** - * Get allTime from storage - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get() { - return get(null); - } - /** - * Get allTime from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStat::createFromDiscriminatorValue); - } - /** - * Get allTime from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get allTime from storage - * @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 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 AllTimeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AllTimeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AllTimeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get allTime from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java deleted file mode 100644 index 3018d8f772e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats; - -import com.microsoft.graph.models.ItemActivityStat; -import com.microsoft.graph.models.ItemActivityStatCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.ItemActivityStatItemRequestBuilder; -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 manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityStatsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. - * @param itemActivityStatId The unique identifier of itemActivityStat - * @return a {@link ItemActivityStatItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityStatItemRequestBuilder byItemActivityStatId(@jakarta.annotation.Nonnull final String itemActivityStatId) { - Objects.requireNonNull(itemActivityStatId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityStat%2Did", itemActivityStatId); - return new ItemActivityStatItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityStatsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityStatsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityStatsRequestBuilder} 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 ItemActivityStatsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get itemActivityStats from storage - * @return a {@link ItemActivityStatCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStatCollectionResponse get() { - return get(null); - } - /** - * Get itemActivityStats from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStatCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStatCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStatCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to itemActivityStats for storage - * @param body The request body - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat post(@jakarta.annotation.Nonnull final ItemActivityStat body) { - return post(body, null); - } - /** - * Create new navigation property to itemActivityStats for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat post(@jakarta.annotation.Nonnull final ItemActivityStat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStat::createFromDiscriminatorValue); - } - /** - * Get itemActivityStats from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get itemActivityStats from storage - * @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 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; - } - /** - * Create new navigation property to itemActivityStats for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityStat body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to itemActivityStats for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityStat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ItemActivityStatsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityStatsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityStatsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get itemActivityStats from storage - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java deleted file mode 100644 index 4169400b43c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java deleted file mode 100644 index 3d91cd8aab0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item; - -import com.microsoft.graph.models.ItemActivityStat; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.ActivitiesRequestBuilder; -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 manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityStatItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityStatItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityStatItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityStatItemRequestBuilder} 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 ItemActivityStatItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property itemActivityStats for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property itemActivityStats for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get itemActivityStats from storage - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get() { - return get(null); - } - /** - * Get itemActivityStats from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStat::createFromDiscriminatorValue); - } - /** - * Update the navigation property itemActivityStats in storage - * @param body The request body - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat patch(@jakarta.annotation.Nonnull final ItemActivityStat body) { - return patch(body, null); - } - /** - * Update the navigation property itemActivityStats in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat patch(@jakarta.annotation.Nonnull final ItemActivityStat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStat::createFromDiscriminatorValue); - } - /** - * Delete navigation property itemActivityStats for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property itemActivityStats for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get itemActivityStats from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get itemActivityStats from storage - * @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 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; - } - /** - * Update the navigation property itemActivityStats in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityStat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property itemActivityStats in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityStat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ItemActivityStatItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityStatItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityStatItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get itemActivityStats from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index c5247be7cf1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities; - -import com.microsoft.graph.models.ItemActivity; -import com.microsoft.graph.models.ItemActivityCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.ItemActivityItemRequestBuilder; -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 manage the activities property of the microsoft.graph.itemActivityStat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ActivitiesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. - * @param itemActivityId The unique identifier of itemActivity - * @return a {@link ItemActivityItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityItemRequestBuilder byItemActivityId(@jakarta.annotation.Nonnull final String itemActivityId) { - Objects.requireNonNull(itemActivityId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivity%2Did", itemActivityId); - return new ItemActivityItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ActivitiesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ActivitiesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ActivitiesRequestBuilder} 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 ActivitiesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @return a {@link ItemActivityCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityCollectionResponse get() { - return get(null); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity post(@jakarta.annotation.Nonnull final ItemActivity body) { - return post(body, null); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity post(@jakarta.annotation.Nonnull final ItemActivity body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivity::createFromDiscriminatorValue); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @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 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; - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivity body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivity body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ActivitiesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index 1ce41600d0b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java deleted file mode 100644 index 44a3b6b550a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item; - -import com.microsoft.graph.models.ItemActivity; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.DriveItemRequestBuilder; -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 manage the activities property of the microsoft.graph.itemActivityStat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityItemRequestBuilder} 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 ItemActivityItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property activities for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property activities for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity get() { - return get(null); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivity::createFromDiscriminatorValue); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity patch(@jakarta.annotation.Nonnull final ItemActivity body) { - return patch(body, null); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivity} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivity patch(@jakarta.annotation.Nonnull final ItemActivity body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivity::createFromDiscriminatorValue); - } - /** - * Delete navigation property activities for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property activities for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - * @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 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; - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivity body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivity body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ItemActivityItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Exposes the itemActivities represented in this itemActivityStat resource. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 72cc00156d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content.ContentRequestBuilder; -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 manage the driveItem property of the microsoft.graph.itemActivity entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemRequestBuilder} 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 DriveItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * Exposes the driveItem that was the target of this activity. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Exposes the driveItem that was the target of this activity. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Exposes the driveItem that was the target of this activity. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Exposes the driveItem that was the target of this activity. - * @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 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Exposes the driveItem that was the target of this activity. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 8b0158e3a3f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java deleted file mode 100644 index 57e7fed3b75..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.analytics.lastsevendays; - -import com.microsoft.graph.models.ItemActivityStat; -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 manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastSevenDaysRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LastSevenDaysRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastSevenDaysRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/lastSevenDays{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastSevenDaysRequestBuilder} 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 LastSevenDaysRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/lastSevenDays{?%24expand,%24select}", rawUrl); - } - /** - * Get lastSevenDays from storage - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get() { - return get(null); - } - /** - * Get lastSevenDays from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityStat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityStat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityStat::createFromDiscriminatorValue); - } - /** - * Get lastSevenDays from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastSevenDays from storage - * @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 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 LastSevenDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastSevenDaysRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastSevenDaysRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastSevenDays from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java deleted file mode 100644 index 9dea953cf84..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel; - -import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; -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 AssignSensitivityLabelPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AssignSensitivityLabelPostRequestBody} and sets the default values. - */ - public AssignSensitivityLabelPostRequestBody() { - 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 AssignSensitivityLabelPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AssignSensitivityLabelPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AssignSensitivityLabelPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the assignmentMethod property value. The assignmentMethod property - * @return a {@link SensitivityLabelAssignmentMethod} - */ - @jakarta.annotation.Nullable - public SensitivityLabelAssignmentMethod getAssignmentMethod() { - return this.backingStore.get("assignmentMethod"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("assignmentMethod", (n) -> { this.setAssignmentMethod(n.getEnumValue(SensitivityLabelAssignmentMethod::forValue)); }); - deserializerMap.put("justificationText", (n) -> { this.setJustificationText(n.getStringValue()); }); - deserializerMap.put("sensitivityLabelId", (n) -> { this.setSensitivityLabelId(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the justificationText property value. The justificationText property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getJustificationText() { - return this.backingStore.get("justificationText"); - } - /** - * Gets the sensitivityLabelId property value. The sensitivityLabelId property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSensitivityLabelId() { - return this.backingStore.get("sensitivityLabelId"); - } - /** - * 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.writeEnumValue("assignmentMethod", this.getAssignmentMethod()); - writer.writeStringValue("justificationText", this.getJustificationText()); - writer.writeStringValue("sensitivityLabelId", this.getSensitivityLabelId()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the assignmentMethod property value. The assignmentMethod property - * @param value Value to set for the assignmentMethod property. - */ - public void setAssignmentMethod(@jakarta.annotation.Nullable final SensitivityLabelAssignmentMethod value) { - this.backingStore.set("assignmentMethod", 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 justificationText property value. The justificationText property - * @param value Value to set for the justificationText property. - */ - public void setJustificationText(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("justificationText", value); - } - /** - * Sets the sensitivityLabelId property value. The sensitivityLabelId property - * @param value Value to set for the sensitivityLabelId property. - */ - public void setSensitivityLabelId(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("sensitivityLabelId", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java deleted file mode 100644 index fd3b2da90b1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel; - -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.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 assignSensitivityLabel method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AssignSensitivityLabelRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AssignSensitivityLabelRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AssignSensitivityLabelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/assignSensitivityLabel", pathParameters); - } - /** - * Instantiates a new {@link AssignSensitivityLabelRequestBuilder} 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 AssignSensitivityLabelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/assignSensitivityLabel", rawUrl); - } - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final AssignSensitivityLabelPostRequestBody body) { - post(body, null); - } - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final AssignSensitivityLabelPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignSensitivityLabelPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssignSensitivityLabelPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AssignSensitivityLabelRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AssignSensitivityLabelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AssignSensitivityLabelRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java deleted file mode 100644 index cf5e78ac41f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.checkin; - -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 CheckinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CheckinPostRequestBody} and sets the default values. - */ - public CheckinPostRequestBody() { - 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 CheckinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CheckinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CheckinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the checkInAs property value. The checkInAs property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCheckInAs() { - return this.backingStore.get("checkInAs"); - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("checkInAs", (n) -> { this.setCheckInAs(n.getStringValue()); }); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("checkInAs", this.getCheckInAs()); - writer.writeStringValue("comment", this.getComment()); - 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 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 checkInAs property value. The checkInAs property - * @param value Value to set for the checkInAs property. - */ - public void setCheckInAs(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("checkInAs", value); - } - /** - * Sets the comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java deleted file mode 100644 index 7910255bd16..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.checkin; - -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.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 checkin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CheckinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CheckinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CheckinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkin", pathParameters); - } - /** - * Instantiates a new {@link CheckinRequestBuilder} 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 CheckinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkin", rawUrl); - } - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CheckinPostRequestBody body) { - post(body, null); - } - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CheckinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CheckinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CheckinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CheckinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CheckinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CheckinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java deleted file mode 100644 index 6dc25c6598c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.checkout; - -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.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 checkout method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CheckoutRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CheckoutRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CheckoutRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkout", pathParameters); - } - /** - * Instantiates a new {@link CheckoutRequestBuilder} 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 CheckoutRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkout", rawUrl); - } - /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 CheckoutRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CheckoutRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CheckoutRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java deleted file mode 100644 index 9c909e7fa67..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.DriveItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.item.DriveItemItemRequestBuilder; -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 manage the children property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChildrenRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the children property of the microsoft.graph.driveItem entity. - * @param driveItemId1 The unique identifier of driveItem - * @return a {@link DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder byDriveItemId1(@jakarta.annotation.Nonnull final String driveItemId1) { - Objects.requireNonNull(driveItemId1); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItem%2Did1", driveItemId1); - return new DriveItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChildrenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChildrenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChildrenRequestBuilder} 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 ChildrenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get() { - return get(null); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to children for storage - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body) { - return post(body, null); - } - /** - * Create new navigation property to children for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @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 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; - } - /** - * Create new navigation property to children for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to children for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChildrenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChildrenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChildrenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java deleted file mode 100644 index 1bb6d067b8e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 9d7fff6b794..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.item; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.item.content.ContentRequestBuilder; -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 manage the children property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} 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 DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}", rawUrl); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - * @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 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 DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java deleted file mode 100644 index 1f3e586c6d9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.children.item.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java deleted file mode 100644 index 5a480b70f20..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java deleted file mode 100644 index 7314af903c7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.copy; - -import com.microsoft.graph.models.ItemReference; -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 CopyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CopyPostRequestBody} and sets the default values. - */ - public CopyPostRequestBody() { - 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 CopyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CopyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CopyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("parentReference", (n) -> { this.setParentReference(n.getObjectValue(ItemReference::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the parentReference property value. The parentReference property - * @return a {@link ItemReference} - */ - @jakarta.annotation.Nullable - public ItemReference getParentReference() { - return this.backingStore.get("parentReference"); - } - /** - * 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.writeStringValue("name", this.getName()); - writer.writeObjectValue("parentReference", this.getParentReference()); - 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 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 name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the parentReference property value. The parentReference property - * @param value Value to set for the parentReference property. - */ - public void setParentReference(@jakarta.annotation.Nullable final ItemReference value) { - this.backingStore.set("parentReference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java deleted file mode 100644 index f843cd5f501..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.copy; - -import com.microsoft.graph.models.DriveItem; -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.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 copy method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CopyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CopyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/copy", pathParameters); - } - /** - * Instantiates a new {@link CopyRequestBuilder} 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 CopyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/copy", rawUrl); - } - /** - * Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final CopyPostRequestBody body) { - return post(body, null); - } - /** - * Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final CopyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CopyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CopyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CopyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CopyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CopyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index c56c1ef81f9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index f5a2c102bab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/createdByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index d7d5b5f3ba6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 7e165c6e98b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 7f18a3f66a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createlink; - -import com.microsoft.graph.models.DriveRecipient; -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.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateLinkPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CreateLinkPostRequestBody} and sets the default values. - */ - public CreateLinkPostRequestBody() { - 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 CreateLinkPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CreateLinkPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CreateLinkPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the expirationDateTime property value. The expirationDateTime property - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getExpirationDateTime() { - return this.backingStore.get("expirationDateTime"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("expirationDateTime", (n) -> { this.setExpirationDateTime(n.getOffsetDateTimeValue()); }); - deserializerMap.put("message", (n) -> { this.setMessage(n.getStringValue()); }); - deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); - deserializerMap.put("recipients", (n) -> { this.setRecipients(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - deserializerMap.put("retainInheritedPermissions", (n) -> { this.setRetainInheritedPermissions(n.getBooleanValue()); }); - deserializerMap.put("scope", (n) -> { this.setScope(n.getStringValue()); }); - deserializerMap.put("sendNotification", (n) -> { this.setSendNotification(n.getBooleanValue()); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the message property value. The message property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMessage() { - return this.backingStore.get("message"); - } - /** - * Gets the password property value. The password property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getPassword() { - return this.backingStore.get("password"); - } - /** - * Gets the recipients property value. The recipients property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRecipients() { - return this.backingStore.get("recipients"); - } - /** - * Gets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getRetainInheritedPermissions() { - return this.backingStore.get("retainInheritedPermissions"); - } - /** - * Gets the scope property value. The scope property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getScope() { - return this.backingStore.get("scope"); - } - /** - * Gets the sendNotification property value. The sendNotification property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getSendNotification() { - return this.backingStore.get("sendNotification"); - } - /** - * Gets the type property value. The type property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getType() { - return this.backingStore.get("type"); - } - /** - * 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.writeOffsetDateTimeValue("expirationDateTime", this.getExpirationDateTime()); - writer.writeStringValue("message", this.getMessage()); - writer.writeStringValue("password", this.getPassword()); - writer.writeCollectionOfObjectValues("recipients", this.getRecipients()); - writer.writeBooleanValue("retainInheritedPermissions", this.getRetainInheritedPermissions()); - writer.writeStringValue("scope", this.getScope()); - writer.writeBooleanValue("sendNotification", this.getSendNotification()); - writer.writeStringValue("type", this.getType()); - 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 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 expirationDateTime property value. The expirationDateTime property - * @param value Value to set for the expirationDateTime property. - */ - public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { - this.backingStore.set("expirationDateTime", value); - } - /** - * Sets the message property value. The message property - * @param value Value to set for the message property. - */ - public void setMessage(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("message", value); - } - /** - * Sets the password property value. The password property - * @param value Value to set for the password property. - */ - public void setPassword(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("password", value); - } - /** - * Sets the recipients property value. The recipients property - * @param value Value to set for the recipients property. - */ - public void setRecipients(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("recipients", value); - } - /** - * Sets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @param value Value to set for the retainInheritedPermissions property. - */ - public void setRetainInheritedPermissions(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("retainInheritedPermissions", value); - } - /** - * Sets the scope property value. The scope property - * @param value Value to set for the scope property. - */ - public void setScope(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("scope", value); - } - /** - * Sets the sendNotification property value. The sendNotification property - * @param value Value to set for the sendNotification property. - */ - public void setSendNotification(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("sendNotification", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index 884ce2290eb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createlink; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 createLink method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateLinkRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreateLinkRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreateLinkRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createLink", pathParameters); - } - /** - * Instantiates a new {@link CreateLinkRequestBuilder} 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 CreateLinkRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createLink", rawUrl); - } - /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body) { - return post(body, null); - } - /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CreateLinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateLinkRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreateLinkRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java deleted file mode 100644 index 89a6d8dd954..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.models.DriveItemUploadableProperties; -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 CreateUploadSessionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CreateUploadSessionPostRequestBody} and sets the default values. - */ - public CreateUploadSessionPostRequestBody() { - 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 CreateUploadSessionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CreateUploadSessionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CreateUploadSessionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("item", (n) -> { this.setItem(n.getObjectValue(DriveItemUploadableProperties::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the item property value. The item property - * @return a {@link DriveItemUploadableProperties} - */ - @jakarta.annotation.Nullable - public DriveItemUploadableProperties getItem() { - return this.backingStore.get("item"); - } - /** - * 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("item", this.getItem()); - 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 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 item property value. The item property - * @param value Value to set for the item property. - */ - public void setItem(@jakarta.annotation.Nullable final DriveItemUploadableProperties value) { - this.backingStore.set("item", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java deleted file mode 100644 index f067ffd9165..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.UploadSession; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 createUploadSession method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreateUploadSessionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreateUploadSessionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createUploadSession", pathParameters); - } - /** - * Instantiates a new {@link CreateUploadSessionRequestBuilder} 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 CreateUploadSessionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createUploadSession", rawUrl); - } - /** - * Invoke action createUploadSession - * @param body The request body - * @return a {@link UploadSession} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public UploadSession post(@jakarta.annotation.Nonnull final CreateUploadSessionPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action createUploadSession - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link UploadSession} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public UploadSession post(@jakarta.annotation.Nonnull final CreateUploadSessionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, UploadSession::createFromDiscriminatorValue); - } - /** - * Invoke action createUploadSession - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateUploadSessionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action createUploadSession - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateUploadSessionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CreateUploadSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateUploadSessionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreateUploadSessionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java deleted file mode 100644 index 1b9da48aa94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.delta; - -import com.microsoft.graph.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.models.DriveItem; -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 DeltaGetResponse extends BaseDeltaFunctionResponse implements Parsable { - /** - * Instantiates a new {@link DeltaGetResponse} and sets the default values. - */ - public DeltaGetResponse() { - 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 DeltaGetResponse} - */ - @jakarta.annotation.Nonnull - public static DeltaGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java deleted file mode 100644 index e42b47cb5ee..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.delta; - -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 delta method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DeltaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DeltaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DeltaRequestBuilder} 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 DeltaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all thechanges, you may apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. - * @return a {@link DeltaGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DeltaGetResponse get() { - return get(null); - } - /** - * Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all thechanges, you may apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DeltaGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DeltaGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DeltaGetResponse::createFromDiscriminatorValue); - } - /** - * Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all thechanges, you may apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all thechanges, you may apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. - * @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 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 DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DeltaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all thechanges, you may apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index d2e13363be1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.deltawithtoken; - -import com.microsoft.graph.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.models.DriveItem; -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 DeltaWithTokenGetResponse extends BaseDeltaFunctionResponse implements Parsable { - /** - * Instantiates a new {@link DeltaWithTokenGetResponse} and sets the default values. - */ - public DeltaWithTokenGetResponse() { - 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 DeltaWithTokenGetResponse} - */ - @jakarta.annotation.Nonnull - public static DeltaWithTokenGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaWithTokenGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index f93a70a0f54..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.deltawithtoken; - -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 delta method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaWithTokenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DeltaWithTokenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param token Usage: token='{token}' - */ - public DeltaWithTokenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String token) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("token", token); - } - /** - * Instantiates a new {@link DeltaWithTokenRequestBuilder} 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 DeltaWithTokenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Invoke function delta - * @return a {@link DeltaWithTokenGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DeltaWithTokenGetResponse get() { - return get(null); - } - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DeltaWithTokenGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DeltaWithTokenGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DeltaWithTokenGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function delta - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function delta - * @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 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 DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DeltaWithTokenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Invoke function delta - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java deleted file mode 100644 index 9fd7a24e923..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.extractsensitivitylabels; - -import com.microsoft.graph.models.ExtractSensitivityLabelsResult; -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.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 extractSensitivityLabels method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExtractSensitivityLabelsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExtractSensitivityLabelsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExtractSensitivityLabelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/extractSensitivityLabels", pathParameters); - } - /** - * Instantiates a new {@link ExtractSensitivityLabelsRequestBuilder} 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 ExtractSensitivityLabelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/extractSensitivityLabels", rawUrl); - } - /** - * Invoke action extractSensitivityLabels - * @return a {@link ExtractSensitivityLabelsResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ExtractSensitivityLabelsResult post() { - return post(null); - } - /** - * Invoke action extractSensitivityLabels - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ExtractSensitivityLabelsResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ExtractSensitivityLabelsResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ExtractSensitivityLabelsResult::createFromDiscriminatorValue); - } - /** - * Invoke action extractSensitivityLabels - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action extractSensitivityLabels - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ExtractSensitivityLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExtractSensitivityLabelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExtractSensitivityLabelsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java deleted file mode 100644 index 9b02e38198e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.follow; - -import com.microsoft.graph.models.DriveItem; -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.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 follow method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FollowRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FollowRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FollowRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/follow", pathParameters); - } - /** - * Instantiates a new {@link FollowRequestBuilder} 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 FollowRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/follow", rawUrl); - } - /** - * Follow a driveItem. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post() { - return post(null); - } - /** - * Follow a driveItem. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Follow a driveItem. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Follow a driveItem. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 FollowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FollowRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FollowRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java deleted file mode 100644 index e5a2683a209..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyinterval; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.ItemActivityStat; -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 GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GetActivitiesByIntervalGetResponse} and sets the default values. - */ - public GetActivitiesByIntervalGetResponse() { - 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 GetActivitiesByIntervalGetResponse} - */ - @jakarta.annotation.Nonnull - public static GetActivitiesByIntervalGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GetActivitiesByIntervalGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ItemActivityStat::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java deleted file mode 100644 index 2624dfacb5c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyinterval; - -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 getActivitiesByInterval method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetActivitiesByIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetActivitiesByIntervalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetActivitiesByIntervalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link GetActivitiesByIntervalRequestBuilder} 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 GetActivitiesByIntervalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @return a {@link GetActivitiesByIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalGetResponse get() { - return get(null); - } - /** - * Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GetActivitiesByIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GetActivitiesByIntervalGetResponse::createFromDiscriminatorValue); - } - /** - * Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @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 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 GetActivitiesByIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index 984f8dc3bad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.ItemActivityStat; -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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} and sets the default values. - */ - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse() { - 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - */ - @jakarta.annotation.Nonnull - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ItemActivityStat::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index 30b6f41b401..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -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 getActivitiesByInterval method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String endDateTime, @jakarta.annotation.Nullable final String interval, @jakarta.annotation.Nullable final String startDateTime) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("endDateTime", endDateTime); - this.pathParameters.put("interval", interval); - this.pathParameters.put("startDateTime", startDateTime); - } - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get() { - return get(null); - } - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getActivitiesByInterval - * @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 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Invoke function getActivitiesByInterval - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java deleted file mode 100644 index 47db647eb27..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.invite; - -import com.microsoft.graph.models.DriveRecipient; -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 InvitePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link InvitePostRequestBody} and sets the default values. - */ - public InvitePostRequestBody() { - 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 InvitePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static InvitePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new InvitePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the expirationDateTime property value. The expirationDateTime property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getExpirationDateTime() { - return this.backingStore.get("expirationDateTime"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("expirationDateTime", (n) -> { this.setExpirationDateTime(n.getStringValue()); }); - deserializerMap.put("message", (n) -> { this.setMessage(n.getStringValue()); }); - deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); - deserializerMap.put("recipients", (n) -> { this.setRecipients(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - deserializerMap.put("requireSignIn", (n) -> { this.setRequireSignIn(n.getBooleanValue()); }); - deserializerMap.put("retainInheritedPermissions", (n) -> { this.setRetainInheritedPermissions(n.getBooleanValue()); }); - deserializerMap.put("roles", (n) -> { this.setRoles(n.getCollectionOfPrimitiveValues(String.class)); }); - deserializerMap.put("sendInvitation", (n) -> { this.setSendInvitation(n.getBooleanValue()); }); - return deserializerMap; - } - /** - * Gets the message property value. The message property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMessage() { - return this.backingStore.get("message"); - } - /** - * Gets the password property value. The password property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getPassword() { - return this.backingStore.get("password"); - } - /** - * Gets the recipients property value. The recipients property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRecipients() { - return this.backingStore.get("recipients"); - } - /** - * Gets the requireSignIn property value. The requireSignIn property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getRequireSignIn() { - return this.backingStore.get("requireSignIn"); - } - /** - * Gets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getRetainInheritedPermissions() { - return this.backingStore.get("retainInheritedPermissions"); - } - /** - * Gets the roles property value. The roles property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRoles() { - return this.backingStore.get("roles"); - } - /** - * Gets the sendInvitation property value. The sendInvitation property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getSendInvitation() { - return this.backingStore.get("sendInvitation"); - } - /** - * 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.writeStringValue("expirationDateTime", this.getExpirationDateTime()); - writer.writeStringValue("message", this.getMessage()); - writer.writeStringValue("password", this.getPassword()); - writer.writeCollectionOfObjectValues("recipients", this.getRecipients()); - writer.writeBooleanValue("requireSignIn", this.getRequireSignIn()); - writer.writeBooleanValue("retainInheritedPermissions", this.getRetainInheritedPermissions()); - writer.writeCollectionOfPrimitiveValues("roles", this.getRoles()); - writer.writeBooleanValue("sendInvitation", this.getSendInvitation()); - 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 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 expirationDateTime property value. The expirationDateTime property - * @param value Value to set for the expirationDateTime property. - */ - public void setExpirationDateTime(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("expirationDateTime", value); - } - /** - * Sets the message property value. The message property - * @param value Value to set for the message property. - */ - public void setMessage(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("message", value); - } - /** - * Sets the password property value. The password property - * @param value Value to set for the password property. - */ - public void setPassword(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("password", value); - } - /** - * Sets the recipients property value. The recipients property - * @param value Value to set for the recipients property. - */ - public void setRecipients(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("recipients", value); - } - /** - * Sets the requireSignIn property value. The requireSignIn property - * @param value Value to set for the requireSignIn property. - */ - public void setRequireSignIn(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("requireSignIn", value); - } - /** - * Sets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @param value Value to set for the retainInheritedPermissions property. - */ - public void setRetainInheritedPermissions(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("retainInheritedPermissions", value); - } - /** - * Sets the roles property value. The roles property - * @param value Value to set for the roles property. - */ - public void setRoles(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("roles", value); - } - /** - * Sets the sendInvitation property value. The sendInvitation property - * @param value Value to set for the sendInvitation property. - */ - public void setSendInvitation(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("sendInvitation", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java deleted file mode 100644 index 8721375ee94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.invite; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.Permission; -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 InvitePostResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link InvitePostResponse} and sets the default values. - */ - public InvitePostResponse() { - 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 InvitePostResponse} - */ - @jakarta.annotation.Nonnull - public static InvitePostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new InvitePostResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Permission::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java deleted file mode 100644 index 62a535628f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.invite; - -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.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 invite method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class InviteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link InviteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InviteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/invite", pathParameters); - } - /** - * Instantiates a new {@link InviteRequestBuilder} 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 InviteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/invite", rawUrl); - } - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. - * @param body The request body - * @return a {@link InvitePostResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public InvitePostResponse post(@jakarta.annotation.Nonnull final InvitePostRequestBody body) { - return post(body, null); - } - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InvitePostResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public InvitePostResponse post(@jakarta.annotation.Nonnull final InvitePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, InvitePostResponse::createFromDiscriminatorValue); - } - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final InvitePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final InvitePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 InviteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InviteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new InviteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 1698669e187..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 50b0ba83d72..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/lastModifiedByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 2af37083004..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index e6e0cd59652..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index ad48fb4f752..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.listitem; - -import com.microsoft.graph.models.ListItem; -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 manage the listItem property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ListItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/listItem{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ListItemRequestBuilder} 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 ListItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/listItem{?%24expand,%24select}", rawUrl); - } - /** - * For drives in SharePoint, the associated document library list item. Read-only. Nullable. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * For drives in SharePoint, the associated document library list item. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * For drives in SharePoint, the associated document library list item. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * For drives in SharePoint, the associated document library list item. Read-only. Nullable. - * @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 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 ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * For drives in SharePoint, the associated document library list item. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 0bb8c99d8ed..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.graph.models.PermissionCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item.PermissionItemRequestBuilder; -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 manage the permissions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. - * @param permissionId The unique identifier of permission - * @return a {@link PermissionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionItemRequestBuilder byPermissionId(@jakarta.annotation.Nonnull final String permissionId) { - Objects.requireNonNull(permissionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("permission%2Did", permissionId); - return new PermissionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} 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 PermissionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get() { - return get(null); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, PermissionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to permissions for storage - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body) { - return post(body, null); - } - /** - * Create new navigation property to permissions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @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 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; - } - /** - * Create new navigation property to permissions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to permissions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The set of permissions for the item. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java deleted file mode 100644 index a87e36f2f4a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 15449d56d86..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item.grant.GrantRequestBuilder; -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 manage the permissions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the grant method. - * @return a {@link GrantRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GrantRequestBuilder grant() { - return new GrantRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link PermissionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link PermissionItemRequestBuilder} 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 PermissionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property permissions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property permissions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission get() { - return get(null); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * Update the navigation property permissions in storage - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission patch(@jakarta.annotation.Nonnull final Permission body) { - return patch(body, null); - } - /** - * Update the navigation property permissions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission patch(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * Delete navigation property permissions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property permissions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of permissions for the item. Read-only. Nullable. - * @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 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; - } - /** - * Update the navigation property permissions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property permissions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermissionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The set of permissions for the item. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index 9c23f4eb07e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.models.DriveRecipient; -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 GrantPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GrantPostRequestBody} and sets the default values. - */ - public GrantPostRequestBody() { - 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 GrantPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GrantPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GrantPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("recipients", (n) -> { this.setRecipients(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - deserializerMap.put("roles", (n) -> { this.setRoles(n.getCollectionOfPrimitiveValues(String.class)); }); - return deserializerMap; - } - /** - * Gets the recipients property value. The recipients property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRecipients() { - return this.backingStore.get("recipients"); - } - /** - * Gets the roles property value. The roles property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRoles() { - return this.backingStore.get("roles"); - } - /** - * 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.writeCollectionOfObjectValues("recipients", this.getRecipients()); - writer.writeCollectionOfPrimitiveValues("roles", this.getRoles()); - 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 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 recipients property value. The recipients property - * @param value Value to set for the recipients property. - */ - public void setRecipients(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("recipients", value); - } - /** - * Sets the roles property value. The roles property - * @param value Value to set for the roles property. - */ - public void setRoles(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("roles", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 7696dde8b8f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.Permission; -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 GrantPostResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GrantPostResponse} and sets the default values. - */ - public GrantPostResponse() { - 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 GrantPostResponse} - */ - @jakarta.annotation.Nonnull - public static GrantPostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GrantPostResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(Permission::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index 34789fc58f8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -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.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 grant method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GrantRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GrantRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GrantRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", pathParameters); - } - /** - * Instantiates a new {@link GrantRequestBuilder} 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 GrantRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", rawUrl); - } - /** - * Grant users access to a link represented by a permission. - * @param body The request body - * @return a {@link GrantPostResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GrantPostResponse post(@jakarta.annotation.Nonnull final GrantPostRequestBody body) { - return post(body, null); - } - /** - * Grant users access to a link represented by a permission. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GrantPostResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GrantPostResponse post(@jakarta.annotation.Nonnull final GrantPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GrantPostResponse::createFromDiscriminatorValue); - } - /** - * Grant users access to a link represented by a permission. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GrantPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Grant users access to a link represented by a permission. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GrantPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GrantRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GrantRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GrantRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java deleted file mode 100644 index 09f7a01f5ac..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.preview; - -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 PreviewPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PreviewPostRequestBody} and sets the default values. - */ - public PreviewPostRequestBody() { - 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 PreviewPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PreviewPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PreviewPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("page", (n) -> { this.setPage(n.getStringValue()); }); - deserializerMap.put("zoom", (n) -> { this.setZoom(n.getDoubleValue()); }); - return deserializerMap; - } - /** - * Gets the page property value. The page property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getPage() { - return this.backingStore.get("page"); - } - /** - * Gets the zoom property value. The zoom property - * @return a {@link Double} - */ - @jakarta.annotation.Nullable - public Double getZoom() { - return this.backingStore.get("zoom"); - } - /** - * 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.writeStringValue("page", this.getPage()); - writer.writeDoubleValue("zoom", this.getZoom()); - 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 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 page property value. The page property - * @param value Value to set for the page property. - */ - public void setPage(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("page", value); - } - /** - * Sets the zoom property value. The zoom property - * @param value Value to set for the zoom property. - */ - public void setZoom(@jakarta.annotation.Nullable final Double value) { - this.backingStore.set("zoom", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java deleted file mode 100644 index 99d4c951508..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.preview; - -import com.microsoft.graph.models.ItemPreviewInfo; -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.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 preview method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PreviewRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PreviewRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PreviewRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/preview", pathParameters); - } - /** - * Instantiates a new {@link PreviewRequestBuilder} 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 PreviewRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/preview", rawUrl); - } - /** - * Invoke action preview - * @param body The request body - * @return a {@link ItemPreviewInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemPreviewInfo post(@jakarta.annotation.Nonnull final PreviewPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action preview - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemPreviewInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemPreviewInfo post(@jakarta.annotation.Nonnull final PreviewPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemPreviewInfo::createFromDiscriminatorValue); - } - /** - * Invoke action preview - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PreviewPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action preview - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PreviewPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PreviewRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PreviewRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PreviewRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java deleted file mode 100644 index 0e33912b92e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.restore; - -import com.microsoft.graph.models.ItemReference; -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 RestorePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RestorePostRequestBody} and sets the default values. - */ - public RestorePostRequestBody() { - 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 RestorePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RestorePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RestorePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("parentReference", (n) -> { this.setParentReference(n.getObjectValue(ItemReference::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the parentReference property value. The parentReference property - * @return a {@link ItemReference} - */ - @jakarta.annotation.Nullable - public ItemReference getParentReference() { - return this.backingStore.get("parentReference"); - } - /** - * 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.writeStringValue("name", this.getName()); - writer.writeObjectValue("parentReference", this.getParentReference()); - 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 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 name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the parentReference property value. The parentReference property - * @param value Value to set for the parentReference property. - */ - public void setParentReference(@jakarta.annotation.Nullable final ItemReference value) { - this.backingStore.set("parentReference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index b3e21efa302..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.restore; - -import com.microsoft.graph.models.DriveItem; -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.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 restore method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RestoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RestoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RestoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/restore", pathParameters); - } - /** - * Instantiates a new {@link RestoreRequestBuilder} 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 RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/restore", rawUrl); - } - /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. - * @param body The request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { - return post(body, null); - } - /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DriveItem post(@jakarta.annotation.Nonnull final RestorePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RestoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RestoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java deleted file mode 100644 index 346a0d719df..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.retentionlabel; - -import com.microsoft.graph.models.ItemRetentionLabel; -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 manage the retentionLabel property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RetentionLabelRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RetentionLabelRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RetentionLabelRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/retentionLabel{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link RetentionLabelRequestBuilder} 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 RetentionLabelRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/retentionLabel{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property retentionLabel for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property retentionLabel for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Information about retention label and settings enforced on the driveItem. Read-write. - * @return a {@link ItemRetentionLabel} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemRetentionLabel get() { - return get(null); - } - /** - * Information about retention label and settings enforced on the driveItem. Read-write. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemRetentionLabel} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemRetentionLabel get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemRetentionLabel::createFromDiscriminatorValue); - } - /** - * Update the navigation property retentionLabel in storage - * @param body The request body - * @return a {@link ItemRetentionLabel} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemRetentionLabel patch(@jakarta.annotation.Nonnull final ItemRetentionLabel body) { - return patch(body, null); - } - /** - * Update the navigation property retentionLabel in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemRetentionLabel} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemRetentionLabel patch(@jakarta.annotation.Nonnull final ItemRetentionLabel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemRetentionLabel::createFromDiscriminatorValue); - } - /** - * Delete navigation property retentionLabel for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property retentionLabel for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Information about retention label and settings enforced on the driveItem. Read-write. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Information about retention label and settings enforced on the driveItem. Read-write. - * @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 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; - } - /** - * Update the navigation property retentionLabel in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemRetentionLabel body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property retentionLabel in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemRetentionLabel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RetentionLabelRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RetentionLabelRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RetentionLabelRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Information about retention label and settings enforced on the driveItem. Read-write. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index 94a3ad06118..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.searchwithq; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.DriveItem; -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 SearchWithQGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link SearchWithQGetResponse} and sets the default values. - */ - public SearchWithQGetResponse() { - 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 SearchWithQGetResponse} - */ - @jakarta.annotation.Nonnull - public static SearchWithQGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SearchWithQGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index c2d78bb5e1e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.searchwithq; - -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 search method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SearchWithQRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SearchWithQRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param q Usage: q='{q}' - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SearchWithQRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String q) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("q", q); - } - /** - * Instantiates a new {@link SearchWithQRequestBuilder} 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 SearchWithQRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @return a {@link SearchWithQGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SearchWithQGetResponse get() { - return get(null); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SearchWithQGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SearchWithQGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SearchWithQGetResponse::createFromDiscriminatorValue); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @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 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 SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SearchWithQRequestBuilder(rawUrl, requestAdapter); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index ff2af450f28..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Subscription; -import com.microsoft.graph.models.SubscriptionCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.item.SubscriptionItemRequestBuilder; -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 manage the subscriptions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubscriptionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. - * @param subscriptionId The unique identifier of subscription - * @return a {@link SubscriptionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionItemRequestBuilder bySubscriptionId(@jakarta.annotation.Nonnull final String subscriptionId) { - Objects.requireNonNull(subscriptionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("subscription%2Did", subscriptionId); - return new SubscriptionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link SubscriptionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubscriptionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SubscriptionsRequestBuilder} 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 SubscriptionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @return a {@link SubscriptionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SubscriptionCollectionResponse get() { - return get(null); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SubscriptionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SubscriptionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SubscriptionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription post(@jakarta.annotation.Nonnull final Subscription body) { - return post(body, null); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription post(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @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 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; - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Subscription body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubscriptionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubscriptionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index c6c22b40cfe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index 5793131a3af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Subscription; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.item.reauthorize.ReauthorizeRequestBuilder; -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 manage the subscriptions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubscriptionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the reauthorize method. - * @return a {@link ReauthorizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReauthorizeRequestBuilder reauthorize() { - return new ReauthorizeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link SubscriptionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubscriptionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SubscriptionItemRequestBuilder} 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 SubscriptionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property subscriptions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property subscriptions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription get() { - return get(null); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription patch(@jakarta.annotation.Nonnull final Subscription body) { - return patch(body, null); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription patch(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * Delete navigation property subscriptions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property subscriptions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - * @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 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; - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Subscription body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubscriptionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubscriptionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The set of subscriptions on the item. Only supported on the root of a drive. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index cb2b26928ad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.subscriptions.item.reauthorize; - -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.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 reauthorize method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReauthorizeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReauthorizeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReauthorizeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", pathParameters); - } - /** - * Instantiates a new {@link ReauthorizeRequestBuilder} 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 ReauthorizeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReauthorizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReauthorizeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReauthorizeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java deleted file mode 100644 index a6ef6992a8c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ThumbnailSet; -import com.microsoft.graph.models.ThumbnailSetCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails.item.ThumbnailSetItemRequestBuilder; -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 manage the thumbnails property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ThumbnailsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. - * @param thumbnailSetId The unique identifier of thumbnailSet - * @return a {@link ThumbnailSetItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ThumbnailSetItemRequestBuilder byThumbnailSetId(@jakarta.annotation.Nonnull final String thumbnailSetId) { - Objects.requireNonNull(thumbnailSetId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("thumbnailSet%2Did", thumbnailSetId); - return new ThumbnailSetItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ThumbnailsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ThumbnailsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ThumbnailsRequestBuilder} 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 ThumbnailsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @return a {@link ThumbnailSetCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSetCollectionResponse get() { - return get(null); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ThumbnailSetCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSetCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ThumbnailSetCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to thumbnails for storage - * @param body The request body - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet post(@jakarta.annotation.Nonnull final ThumbnailSet body) { - return post(body, null); - } - /** - * Create new navigation property to thumbnails for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet post(@jakarta.annotation.Nonnull final ThumbnailSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ThumbnailSet::createFromDiscriminatorValue); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @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 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; - } - /** - * Create new navigation property to thumbnails for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ThumbnailSet body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to thumbnails for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ThumbnailSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ThumbnailsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ThumbnailsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ThumbnailsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java deleted file mode 100644 index 0480111b89f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java deleted file mode 100644 index b5664d2e3ed..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.thumbnails.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ThumbnailSet; -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 manage the thumbnails property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ThumbnailSetItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ThumbnailSetItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ThumbnailSetItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ThumbnailSetItemRequestBuilder} 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 ThumbnailSetItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property thumbnails for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property thumbnails for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet get() { - return get(null); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ThumbnailSet::createFromDiscriminatorValue); - } - /** - * Update the navigation property thumbnails in storage - * @param body The request body - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet patch(@jakarta.annotation.Nonnull final ThumbnailSet body) { - return patch(body, null); - } - /** - * Update the navigation property thumbnails in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ThumbnailSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ThumbnailSet patch(@jakarta.annotation.Nonnull final ThumbnailSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ThumbnailSet::createFromDiscriminatorValue); - } - /** - * Delete navigation property thumbnails for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property thumbnails for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - * @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 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; - } - /** - * Update the navigation property thumbnails in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ThumbnailSet body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property thumbnails in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ThumbnailSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ThumbnailSetItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ThumbnailSetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ThumbnailSetItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java deleted file mode 100644 index dc57b406dfa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.unfollow; - -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.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 unfollow method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnfollowRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UnfollowRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UnfollowRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/unfollow", pathParameters); - } - /** - * Instantiates a new {@link UnfollowRequestBuilder} 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 UnfollowRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/unfollow", rawUrl); - } - /** - * Unfollow a driveItem. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Unfollow a driveItem. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Unfollow a driveItem. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Unfollow a driveItem. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 UnfollowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnfollowRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UnfollowRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java deleted file mode 100644 index dcdd4ac0a1d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.validatepermission; - -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 ValidatePermissionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ValidatePermissionPostRequestBody} and sets the default values. - */ - public ValidatePermissionPostRequestBody() { - 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 ValidatePermissionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ValidatePermissionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ValidatePermissionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the challengeToken property value. The challengeToken property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getChallengeToken() { - return this.backingStore.get("challengeToken"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("challengeToken", (n) -> { this.setChallengeToken(n.getStringValue()); }); - deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the password property value. The password property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getPassword() { - return this.backingStore.get("password"); - } - /** - * 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.writeStringValue("challengeToken", this.getChallengeToken()); - writer.writeStringValue("password", this.getPassword()); - 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 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 challengeToken property value. The challengeToken property - * @param value Value to set for the challengeToken property. - */ - public void setChallengeToken(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("challengeToken", value); - } - /** - * Sets the password property value. The password property - * @param value Value to set for the password property. - */ - public void setPassword(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("password", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java deleted file mode 100644 index 3614f33ff66..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.validatepermission; - -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.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 validatePermission method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ValidatePermissionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ValidatePermissionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ValidatePermissionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/validatePermission", pathParameters); - } - /** - * Instantiates a new {@link ValidatePermissionRequestBuilder} 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 ValidatePermissionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/validatePermission", rawUrl); - } - /** - * Invoke action validatePermission - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ValidatePermissionPostRequestBody body) { - post(body, null); - } - /** - * Invoke action validatePermission - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ValidatePermissionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action validatePermission - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidatePermissionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action validatePermission - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidatePermissionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ValidatePermissionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValidatePermissionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ValidatePermissionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index 79e8a532494..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions; - -import com.microsoft.graph.models.DriveItemVersion; -import com.microsoft.graph.models.DriveItemVersionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item.DriveItemVersionItemRequestBuilder; -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 manage the versions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VersionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the versions property of the microsoft.graph.driveItem entity. - * @param driveItemVersionId The unique identifier of driveItemVersion - * @return a {@link DriveItemVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemVersionItemRequestBuilder byDriveItemVersionId(@jakarta.annotation.Nonnull final String driveItemVersionId) { - Objects.requireNonNull(driveItemVersionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItemVersion%2Did", driveItemVersionId); - return new DriveItemVersionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link VersionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VersionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link VersionsRequestBuilder} 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 VersionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @return a {@link DriveItemVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersionCollectionResponse get() { - return get(null); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemVersionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion post(@jakarta.annotation.Nonnull final DriveItemVersion body) { - return post(body, null); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion post(@jakarta.annotation.Nonnull final DriveItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemVersion::createFromDiscriminatorValue); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @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 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; - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItemVersion body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DriveItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VersionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VersionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index eaffe2e00aa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java deleted file mode 100644 index 13736079c04..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item; - -import com.microsoft.graph.models.DriveItemVersion; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item.content.ContentRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item.restoreversion.RestoreVersionRequestBuilder; -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 manage the versions property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemVersionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the restoreVersion method. - * @return a {@link RestoreVersionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreVersionRequestBuilder restoreVersion() { - return new RestoreVersionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemVersionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemVersionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemVersionItemRequestBuilder} 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 DriveItemVersionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property versions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property versions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion get() { - return get(null); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemVersion::createFromDiscriminatorValue); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion patch(@jakarta.annotation.Nonnull final DriveItemVersion body) { - return patch(body, null); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion patch(@jakarta.annotation.Nonnull final DriveItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemVersion::createFromDiscriminatorValue); - } - /** - * Delete navigation property versions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property versions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - * @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 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; - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DriveItemVersion body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DriveItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DriveItemVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemVersionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemVersionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java deleted file mode 100644 index 371ab3d00a1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item.content; - -import com.microsoft.graph.models.DriveItemVersion; -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.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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", rawUrl); - } - /** - * The content stream for this version of the item. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream for this version of the item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream for this version of the item. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream for this version of the item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream for this version of the item. - * @param body Binary request body - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream for this version of the item. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemVersion put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemVersion::createFromDiscriminatorValue); - } - /** - * The content stream for this version of the item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream for this version of the item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream for this version of the item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream for this version of the item. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream for this version of the item. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream for this version of the item. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index 29baa8cbc3e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.versions.item.restoreversion; - -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.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 restoreVersion method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RestoreVersionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RestoreVersionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RestoreVersionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", pathParameters); - } - /** - * Instantiates a new {@link RestoreVersionRequestBuilder} 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 RestoreVersionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", rawUrl); - } - /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RestoreVersionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreVersionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RestoreVersionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java deleted file mode 100644 index ca38545f6c2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java +++ /dev/null @@ -1,340 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Workbook; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.application.ApplicationRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.closesession.CloseSessionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.CommentsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.createsession.CreateSessionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.FunctionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.NamesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.operations.OperationsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.refreshsession.RefreshSessionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.sessioninforesourcewithkey.SessionInfoResourceWithKeyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tablerowoperationresultwithkey.TableRowOperationResultWithKeyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.TablesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.WorksheetsRequestBuilder; -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 manage the workbook property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the application property of the microsoft.graph.workbook entity. - * @return a {@link ApplicationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplicationRequestBuilder application() { - return new ApplicationRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the closeSession method. - * @return a {@link CloseSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CloseSessionRequestBuilder closeSession() { - return new CloseSessionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comments property of the microsoft.graph.workbook entity. - * @return a {@link CommentsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentsRequestBuilder comments() { - return new CommentsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the createSession method. - * @return a {@link CreateSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateSessionRequestBuilder createSession() { - return new CreateSessionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the functions property of the microsoft.graph.workbook entity. - * @return a {@link FunctionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FunctionsRequestBuilder functions() { - return new FunctionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the names property of the microsoft.graph.workbook entity. - * @return a {@link NamesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NamesRequestBuilder names() { - return new NamesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.workbook entity. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder operations() { - return new OperationsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the refreshSession method. - * @return a {@link RefreshSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshSessionRequestBuilder refreshSession() { - return new RefreshSessionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the tables property of the microsoft.graph.workbook entity. - * @return a {@link TablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TablesRequestBuilder tables() { - return new TablesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheets property of the microsoft.graph.workbook entity. - * @return a {@link WorksheetsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetsRequestBuilder worksheets() { - return new WorksheetsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookRequestBuilder} 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 WorkbookRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property workbook for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property workbook for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. - * @return a {@link Workbook} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Workbook get() { - return get(null); - } - /** - * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Workbook} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Workbook get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Workbook::createFromDiscriminatorValue); - } - /** - * Update the navigation property workbook in storage - * @param body The request body - * @return a {@link Workbook} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Workbook patch(@jakarta.annotation.Nonnull final Workbook body) { - return patch(body, null); - } - /** - * Update the navigation property workbook in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Workbook} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Workbook patch(@jakarta.annotation.Nonnull final Workbook body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Workbook::createFromDiscriminatorValue); - } - /** - * Provides operations to call the sessionInfoResource method. - * @param key Usage: key='{key}' - * @return a {@link SessionInfoResourceWithKeyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SessionInfoResourceWithKeyRequestBuilder sessionInfoResourceWithKey(@jakarta.annotation.Nonnull final String key) { - Objects.requireNonNull(key); - return new SessionInfoResourceWithKeyRequestBuilder(pathParameters, requestAdapter, key); - } - /** - * Provides operations to call the tableRowOperationResult method. - * @param key Usage: key='{key}' - * @return a {@link TableRowOperationResultWithKeyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TableRowOperationResultWithKeyRequestBuilder tableRowOperationResultWithKey(@jakarta.annotation.Nonnull final String key) { - Objects.requireNonNull(key); - return new TableRowOperationResultWithKeyRequestBuilder(pathParameters, requestAdapter, key); - } - /** - * Delete navigation property workbook for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property workbook for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. - * @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 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; - } - /** - * Update the navigation property workbook in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Workbook body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property workbook in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Workbook body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java deleted file mode 100644 index 02486c20b16..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.application; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookApplication; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.application.calculate.CalculateRequestBuilder; -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 manage the application property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplicationRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the calculate method. - * @return a {@link CalculateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CalculateRequestBuilder calculate() { - return new CalculateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ApplicationRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplicationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ApplicationRequestBuilder} 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 ApplicationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property application for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property application for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get application from storage - * @return a {@link WorkbookApplication} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookApplication get() { - return get(null); - } - /** - * Get application from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookApplication} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookApplication get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookApplication::createFromDiscriminatorValue); - } - /** - * Update the navigation property application in storage - * @param body The request body - * @return a {@link WorkbookApplication} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookApplication patch(@jakarta.annotation.Nonnull final WorkbookApplication body) { - return patch(body, null); - } - /** - * Update the navigation property application in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookApplication} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookApplication patch(@jakarta.annotation.Nonnull final WorkbookApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookApplication::createFromDiscriminatorValue); - } - /** - * Delete navigation property application for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property application for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get application from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get application from storage - * @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 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; - } - /** - * Update the navigation property application in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookApplication body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property application in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplicationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplicationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplicationRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get application from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java deleted file mode 100644 index 1fde457cefa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.application.calculate; - -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 CalculatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CalculatePostRequestBody} and sets the default values. - */ - public CalculatePostRequestBody() { - 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 CalculatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CalculatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CalculatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the calculationType property value. The calculationType property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCalculationType() { - return this.backingStore.get("calculationType"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("calculationType", (n) -> { this.setCalculationType(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("calculationType", this.getCalculationType()); - 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 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 calculationType property value. The calculationType property - * @param value Value to set for the calculationType property. - */ - public void setCalculationType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("calculationType", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java deleted file mode 100644 index d5963a6ce57..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.application.calculate; - -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.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 calculate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CalculateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CalculateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CalculateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application/calculate", pathParameters); - } - /** - * Instantiates a new {@link CalculateRequestBuilder} 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 CalculateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application/calculate", rawUrl); - } - /** - * Recalculate all currently opened workbooks in Excel. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CalculatePostRequestBody body) { - post(body, null); - } - /** - * Recalculate all currently opened workbooks in Excel. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CalculatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Recalculate all currently opened workbooks in Excel. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CalculatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Recalculate all currently opened workbooks in Excel. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CalculatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CalculateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CalculateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CalculateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java deleted file mode 100644 index 1fd945518d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.closesession; - -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.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 closeSession method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CloseSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CloseSessionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CloseSessionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/closeSession", pathParameters); - } - /** - * Instantiates a new {@link CloseSessionRequestBuilder} 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 CloseSessionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/closeSession", rawUrl); - } - /** - * Use this API to close an existing workbook session. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Use this API to close an existing workbook session. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Use this API to close an existing workbook session. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Use this API to close an existing workbook session. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 CloseSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CloseSessionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CloseSessionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java deleted file mode 100644 index 0ed8597b348..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookComment; -import com.microsoft.graph.models.WorkbookCommentCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.WorkbookCommentItemRequestBuilder; -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 manage the comments property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comments property of the microsoft.graph.workbook entity. - * @param workbookCommentId The unique identifier of workbookComment - * @return a {@link WorkbookCommentItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookCommentItemRequestBuilder byWorkbookCommentId(@jakarta.annotation.Nonnull final String workbookCommentId) { - Objects.requireNonNull(workbookCommentId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookComment%2Did", workbookCommentId); - return new WorkbookCommentItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link CommentsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link CommentsRequestBuilder} 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 CommentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of comments in a workbook. - * @return a {@link WorkbookCommentCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of comments in a workbook. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookCommentCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to comments for storage - * @param body The request body - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment post(@jakarta.annotation.Nonnull final WorkbookComment body) { - return post(body, null); - } - /** - * Create new navigation property to comments for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment post(@jakarta.annotation.Nonnull final WorkbookComment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookComment::createFromDiscriminatorValue); - } - /** - * Represents a collection of comments in a workbook. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of comments in a workbook. - * @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 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; - } - /** - * Create new navigation property to comments for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookComment body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to comments for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookComment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CommentsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of comments in a workbook. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java deleted file mode 100644 index 81085d09137..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java deleted file mode 100644 index a2a95c23a58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookComment; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.RepliesRequestBuilder; -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 manage the comments property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookCommentItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the replies property of the microsoft.graph.workbookComment entity. - * @return a {@link RepliesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RepliesRequestBuilder replies() { - return new RepliesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookCommentItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookCommentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookCommentItemRequestBuilder} 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 WorkbookCommentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comments for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comments for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of comments in a workbook. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * Represents a collection of comments in a workbook. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookComment::createFromDiscriminatorValue); - } - /** - * Update the navigation property comments in storage - * @param body The request body - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment patch(@jakarta.annotation.Nonnull final WorkbookComment body) { - return patch(body, null); - } - /** - * Update the navigation property comments in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment patch(@jakarta.annotation.Nonnull final WorkbookComment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookComment::createFromDiscriminatorValue); - } - /** - * Delete navigation property comments for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comments for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of comments in a workbook. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of comments in a workbook. - * @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 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; - } - /** - * Update the navigation property comments in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookComment body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property comments in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookComment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookCommentItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookCommentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookCommentItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of comments in a workbook. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java deleted file mode 100644 index bd133aac4f7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookCommentReply; -import com.microsoft.graph.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.WorkbookCommentReplyItemRequestBuilder; -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 manage the replies property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RepliesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the replies property of the microsoft.graph.workbookComment entity. - * @param workbookCommentReplyId The unique identifier of workbookCommentReply - * @return a {@link WorkbookCommentReplyItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookCommentReplyItemRequestBuilder byWorkbookCommentReplyId(@jakarta.annotation.Nonnull final String workbookCommentReplyId) { - Objects.requireNonNull(workbookCommentReplyId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookCommentReply%2Did", workbookCommentReplyId); - return new WorkbookCommentReplyItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link RepliesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RepliesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RepliesRequestBuilder} 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 RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get replies from storage - * @return a {@link WorkbookCommentReplyCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReplyCollectionResponse get() { - return get(null); - } - /** - * Get replies from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookCommentReplyCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReplyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReplyCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to replies for storage - * @param body The request body - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookCommentReply body) { - return post(body, null); - } - /** - * Create new navigation property to replies for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookCommentReply body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); - } - /** - * Get replies from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get replies from storage - * @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 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; - } - /** - * Create new navigation property to replies for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookCommentReply body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to replies for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookCommentReply body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RepliesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RepliesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get replies from storage - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java deleted file mode 100644 index 02ea416b608..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index 451d0d4bc50..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookCommentReply; -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 manage the replies property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookCommentReplyItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookCommentReplyItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookCommentReplyItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookCommentReplyItemRequestBuilder} 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 WorkbookCommentReplyItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property replies for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property replies for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get replies from storage - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply get() { - return get(null); - } - /** - * Get replies from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); - } - /** - * Update the navigation property replies in storage - * @param body The request body - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply patch(@jakarta.annotation.Nonnull final WorkbookCommentReply body) { - return patch(body, null); - } - /** - * Update the navigation property replies in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookCommentReply} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentReply patch(@jakarta.annotation.Nonnull final WorkbookCommentReply body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); - } - /** - * Delete navigation property replies for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property replies for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get replies from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get replies from storage - * @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 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; - } - /** - * Update the navigation property replies in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookCommentReply body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property replies in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookCommentReply body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookCommentReplyItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookCommentReplyItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookCommentReplyItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get replies from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java deleted file mode 100644 index f0e0701a077..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.createsession; - -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 CreateSessionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CreateSessionPostRequestBody} and sets the default values. - */ - public CreateSessionPostRequestBody() { - 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 CreateSessionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CreateSessionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CreateSessionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("persistChanges", (n) -> { this.setPersistChanges(n.getBooleanValue()); }); - return deserializerMap; - } - /** - * Gets the persistChanges property value. The persistChanges property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getPersistChanges() { - return this.backingStore.get("persistChanges"); - } - /** - * 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("persistChanges", this.getPersistChanges()); - 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 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 persistChanges property value. The persistChanges property - * @param value Value to set for the persistChanges property. - */ - public void setPersistChanges(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("persistChanges", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java deleted file mode 100644 index 70719f96bb8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.createsession; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookSessionInfo; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 createSession method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreateSessionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreateSessionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/createSession", pathParameters); - } - /** - * Instantiates a new {@link CreateSessionRequestBuilder} 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 CreateSessionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/createSession", rawUrl); - } - /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: - * @param body The request body - * @return a {@link WorkbookSessionInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookSessionInfo post(@jakarta.annotation.Nonnull final CreateSessionPostRequestBody body) { - return post(body, null); - } - /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookSessionInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookSessionInfo post(@jakarta.annotation.Nonnull final CreateSessionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookSessionInfo::createFromDiscriminatorValue); - } - /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateSessionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateSessionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CreateSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateSessionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreateSessionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java deleted file mode 100644 index 470172dd42a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java +++ /dev/null @@ -1,3522 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctions; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs.AbsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint.AccrIntRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm.AccrIntMRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos.AcosRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh.AcoshRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot.AcotRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth.AcothRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc.AmorDegrcRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc.AmorLincRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.and.AndRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic.ArabicRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas.AreasRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc.AscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin.AsinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh.AsinhRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan.AtanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2.Atan2RequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh.AtanhRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev.AveDevRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.average.AverageRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea.AverageARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif.AverageIfRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs.AverageIfsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext.BahtTextRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli.BesselIRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj.BesselJRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk.BesselKRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely.BesselYRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist.BetaDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv.BetaInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec.Bin2DecRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex.Bin2HexRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct.Bin2OctRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range.BinomDistRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist.BinomDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv.BinomInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand.BitandRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift.BitlshiftRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor.BitorRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift.BitrshiftRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor.BitxorRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math.CeilingMathRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise.CeilingPreciseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped.CharRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt.ChiSqDistRTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist.ChiSqDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt.ChiSqInvRTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv.ChiSqInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose.ChooseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean.CleanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.code.CodeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin.CombinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina.CombinaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex.ComplexRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate.ConcatenateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm.ConfidenceNormRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t.ConfidenceTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert.ConvertRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos.CosRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh.CoshRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot.CotRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth.CothRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta.CountARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank.CountBlankRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif.CountIfRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs.CountIfsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs.CoupDayBsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays.CoupDaysRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc.CoupDaysNcRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd.CoupNcdRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum.CoupNumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd.CoupPcdRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc.CscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch.CschRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt.CumIPmtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc.CumPrincRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.date.DateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue.DatevalueRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage.DaverageRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.day.DayRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days.DaysRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360.Days360RequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.db.DbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs.DbcsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount.DcountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta.DcountARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb.DdbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin.Dec2BinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex.Dec2HexRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct.Dec2OctRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal.DecimalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees.DegreesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta.DeltaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq.DevSqRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget.DgetRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc.DiscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax.DmaxRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin.DminRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar.DollarRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde.DollarDeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr.DollarFrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct.DproductRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev.DstDevRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp.DstDevPRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum.DsumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration.DurationRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar.DvarRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp.DvarPRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling.EcmaCeilingRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate.EdateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect.EffectRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth.EoMonthRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise.ErfPreciseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf.ErfRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise.ErfCPreciseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc.ErfCRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type.ErrorTypeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.even.EvenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact.ExactRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp.ExpRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist.ExponDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt.FDistRTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist.FDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt.FInvRTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv.FInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact.FactRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble.FactDoubleRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.falseescaped.FalseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.find.FindRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb.FindBRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher.FisherRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv.FisherInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed.FixedRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math.FloorMathRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise.FloorPreciseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv.FvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule.FvscheduleRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist.GammaDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv.GammaInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma.GammaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise.GammaLnPreciseRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln.GammaLnRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss.GaussRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd.GcdRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean.GeoMeanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep.GeStepRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean.HarMeanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin.Hex2BinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec.Hex2DecRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct.Hex2OctRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup.HlookupRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour.HourRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink.HyperlinkRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist.HypGeomDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped.IfRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs.ImAbsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary.ImaginaryRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument.ImArgumentRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate.ImConjugateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos.ImCosRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh.ImCoshRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot.ImCotRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc.ImCscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch.ImCschRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv.ImDivRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp.ImExpRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln.ImLnRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10.ImLog10RequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2.ImLog2RequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower.ImPowerRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct.ImProductRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal.ImRealRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec.ImSecRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech.ImSechRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin.ImSinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh.ImSinhRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt.ImSqrtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub.ImSubRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum.ImSumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan.ImTanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped.IntRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate.IntRateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt.IpmtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr.IrrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr.IsErrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror.IsErrorRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven.IsEvenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula.IsFormulaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical.IsLogicalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna.IsNARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext.IsNonTextRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber.IsNumberRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling.IsoCeilingRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd.IsOddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum.IsoWeekNumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt.IspmtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref.IsrefRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext.IsTextRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt.KurtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.large.LargeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm.LcmRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.left.LeftRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb.LeftbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.len.LenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb.LenbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln.LnRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log.LogRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10.Log10RequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist.LogNormDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv.LogNormInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup.LookupRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower.LowerRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.match.MatchRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.max.MaxRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa.MaxARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration.MdurationRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.median.MedianRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid.MidRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb.MidbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.min.MinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina.MinARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute.MinuteRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr.MirrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod.ModRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.month.MonthRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround.MroundRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial.MultiNomialRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.n.NRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.na.NaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist.NegBinomDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl.NetworkDaysIntlRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays.NetworkDaysRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal.NominalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist.NormDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv.NormInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist.NormSDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv.NormSInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.not.NotRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.now.NowRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper.NperRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv.NpvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue.NumberValueRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin.Oct2BinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec.Oct2DecRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex.Oct2HexRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd.OddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice.OddFPriceRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield.OddFYieldRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice.OddLPriceRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield.OddLYieldRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.or.OrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration.PdurationRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc.PercentileExcRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc.PercentileIncRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc.PercentRankExcRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc.PercentRankIncRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut.PermutRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa.PermutationaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi.PhiRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pi.PiRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt.PmtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist.PoissonDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.power.PowerRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt.PpmtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.price.PriceRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc.PriceDiscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat.PriceMatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.product.ProductRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper.ProperRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv.PvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc.QuartileExcRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc.QuartileIncRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient.QuotientRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians.RadiansRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rand.RandRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween.RandBetweenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg.RankAvgRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq.RankEqRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate.RateRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.received.ReceivedRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace.ReplaceRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb.ReplaceBRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept.ReptRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.right.RightRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb.RightbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman.RomanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.round.RoundRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown.RoundDownRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup.RoundUpRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows.RowsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri.RriRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec.SecRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech.SechRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.second.SecondRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum.SeriesSumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet.SheetRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets.SheetsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign.SignRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin.SinRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh.SinhRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p.SkewPRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew.SkewRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln.SlnRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.small.SmallRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt.SqrtRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi.SqrtPiRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize.StandardizeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p.StDevPRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s.StDevSRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva.StDevARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa.StDevPARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute.SubstituteRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal.SubtotalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum.SumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif.SumIfRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs.SumIfsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq.SumSqRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd.SydRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t.TDist2TRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt.TDistRTRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist.TDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t.TInv2TRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv.TInvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t.TRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan.TanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh.TanhRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq.TbillEqRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice.TbillPriceRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield.TbillYieldRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.text.TextRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.time.TimeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue.TimevalueRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.today.TodayRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim.TrimRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean.TrimMeanRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trueescaped.TrueRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc.TruncRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.type.TypeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar.UnicharRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode.UnicodeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper.UpperRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar.UsdollarRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.value.ValueRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p.VarPRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s.VarSRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara.VarARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa.VarPARequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb.VdbRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup.VlookupRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday.WeekdayRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum.WeekNumRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist.WeibullDistRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl.WorkDayIntlRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday.WorkDayRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr.XirrRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv.XnpvRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor.XorRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.year.YearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac.YearFracRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield.YieldRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc.YieldDiscRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat.YieldMatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test.ZTestRequestBuilder; -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 manage the functions property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FunctionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the abs method. - * @return a {@link AbsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AbsRequestBuilder abs() { - return new AbsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the accrInt method. - * @return a {@link AccrIntRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AccrIntRequestBuilder accrInt() { - return new AccrIntRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the accrIntM method. - * @return a {@link AccrIntMRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AccrIntMRequestBuilder accrIntM() { - return new AccrIntMRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the acos method. - * @return a {@link AcosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcosRequestBuilder acos() { - return new AcosRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the acosh method. - * @return a {@link AcoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcoshRequestBuilder acosh() { - return new AcoshRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the acot method. - * @return a {@link AcotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcotRequestBuilder acot() { - return new AcotRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the acoth method. - * @return a {@link AcothRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcothRequestBuilder acoth() { - return new AcothRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the amorDegrc method. - * @return a {@link AmorDegrcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AmorDegrcRequestBuilder amorDegrc() { - return new AmorDegrcRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the amorLinc method. - * @return a {@link AmorLincRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AmorLincRequestBuilder amorLinc() { - return new AmorLincRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the and method. - * @return a {@link AndRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AndRequestBuilder and() { - return new AndRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the arabic method. - * @return a {@link ArabicRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ArabicRequestBuilder arabic() { - return new ArabicRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the areas method. - * @return a {@link AreasRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AreasRequestBuilder areas() { - return new AreasRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the asc method. - * @return a {@link AscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AscRequestBuilder asc() { - return new AscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the asin method. - * @return a {@link AsinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AsinRequestBuilder asin() { - return new AsinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the asinh method. - * @return a {@link AsinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AsinhRequestBuilder asinh() { - return new AsinhRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the atan method. - * @return a {@link AtanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AtanRequestBuilder atan() { - return new AtanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the atan2 method. - * @return a {@link Atan2RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Atan2RequestBuilder atan2() { - return new Atan2RequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the atanh method. - * @return a {@link AtanhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AtanhRequestBuilder atanh() { - return new AtanhRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the aveDev method. - * @return a {@link AveDevRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AveDevRequestBuilder aveDev() { - return new AveDevRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the average method. - * @return a {@link AverageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageRequestBuilder average() { - return new AverageRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the averageA method. - * @return a {@link AverageARequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageARequestBuilder averageA() { - return new AverageARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the averageIf method. - * @return a {@link AverageIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageIfRequestBuilder averageIf() { - return new AverageIfRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the averageIfs method. - * @return a {@link AverageIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageIfsRequestBuilder averageIfs() { - return new AverageIfsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bahtText method. - * @return a {@link BahtTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BahtTextRequestBuilder bahtText() { - return new BahtTextRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the base method. - * @return a {@link BaseRequestBuilderEscaped} - */ - @jakarta.annotation.Nonnull - public BaseRequestBuilderEscaped base() { - return new BaseRequestBuilderEscaped(pathParameters, requestAdapter); - } - /** - * Provides operations to call the besselI method. - * @return a {@link BesselIRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselIRequestBuilder besselI() { - return new BesselIRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the besselJ method. - * @return a {@link BesselJRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselJRequestBuilder besselJ() { - return new BesselJRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the besselK method. - * @return a {@link BesselKRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselKRequestBuilder besselK() { - return new BesselKRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the besselY method. - * @return a {@link BesselYRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselYRequestBuilder besselY() { - return new BesselYRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the beta_Dist method. - * @return a {@link BetaDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BetaDistRequestBuilder betaDist() { - return new BetaDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the beta_Inv method. - * @return a {@link BetaInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BetaInvRequestBuilder betaInv() { - return new BetaInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bin2Dec method. - * @return a {@link Bin2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2DecRequestBuilder bin2Dec() { - return new Bin2DecRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bin2Hex method. - * @return a {@link Bin2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2HexRequestBuilder bin2Hex() { - return new Bin2HexRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bin2Oct method. - * @return a {@link Bin2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2OctRequestBuilder bin2Oct() { - return new Bin2OctRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the binom_Dist method. - * @return a {@link BinomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomDistRequestBuilder binomDist() { - return new BinomDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the binom_Dist_Range method. - * @return a {@link BinomDistRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomDistRangeRequestBuilder binomDistRange() { - return new BinomDistRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the binom_Inv method. - * @return a {@link BinomInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomInvRequestBuilder binomInv() { - return new BinomInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bitand method. - * @return a {@link BitandRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitandRequestBuilder bitand() { - return new BitandRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bitlshift method. - * @return a {@link BitlshiftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitlshiftRequestBuilder bitlshift() { - return new BitlshiftRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bitor method. - * @return a {@link BitorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitorRequestBuilder bitor() { - return new BitorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bitrshift method. - * @return a {@link BitrshiftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitrshiftRequestBuilder bitrshift() { - return new BitrshiftRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the bitxor method. - * @return a {@link BitxorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitxorRequestBuilder bitxor() { - return new BitxorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ceiling_Math method. - * @return a {@link CeilingMathRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CeilingMathRequestBuilder ceilingMath() { - return new CeilingMathRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ceiling_Precise method. - * @return a {@link CeilingPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CeilingPreciseRequestBuilder ceilingPrecise() { - return new CeilingPreciseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the char method. - * @return a {@link CharRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CharRequestBuilder charEscaped() { - return new CharRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the chiSq_Dist method. - * @return a {@link ChiSqDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqDistRequestBuilder chiSqDist() { - return new ChiSqDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the chiSq_Dist_RT method. - * @return a {@link ChiSqDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqDistRTRequestBuilder chiSqDistRT() { - return new ChiSqDistRTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the chiSq_Inv method. - * @return a {@link ChiSqInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqInvRequestBuilder chiSqInv() { - return new ChiSqInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the chiSq_Inv_RT method. - * @return a {@link ChiSqInvRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqInvRTRequestBuilder chiSqInvRT() { - return new ChiSqInvRTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the choose method. - * @return a {@link ChooseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChooseRequestBuilder choose() { - return new ChooseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the clean method. - * @return a {@link CleanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CleanRequestBuilder clean() { - return new CleanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the code method. - * @return a {@link CodeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CodeRequestBuilder code() { - return new CodeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the columns method. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the combin method. - * @return a {@link CombinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CombinRequestBuilder combin() { - return new CombinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the combina method. - * @return a {@link CombinaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CombinaRequestBuilder combina() { - return new CombinaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the complex method. - * @return a {@link ComplexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ComplexRequestBuilder complex() { - return new ComplexRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the concatenate method. - * @return a {@link ConcatenateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConcatenateRequestBuilder concatenate() { - return new ConcatenateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the confidence_Norm method. - * @return a {@link ConfidenceNormRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConfidenceNormRequestBuilder confidenceNorm() { - return new ConfidenceNormRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the confidence_T method. - * @return a {@link ConfidenceTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConfidenceTRequestBuilder confidenceT() { - return new ConfidenceTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the convert method. - * @return a {@link ConvertRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertRequestBuilder convert() { - return new ConvertRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cos method. - * @return a {@link CosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CosRequestBuilder cos() { - return new CosRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cosh method. - * @return a {@link CoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoshRequestBuilder cosh() { - return new CoshRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cot method. - * @return a {@link CotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CotRequestBuilder cot() { - return new CotRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coth method. - * @return a {@link CothRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CothRequestBuilder coth() { - return new CothRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the countA method. - * @return a {@link CountARequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountARequestBuilder countA() { - return new CountARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the countBlank method. - * @return a {@link CountBlankRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountBlankRequestBuilder countBlank() { - return new CountBlankRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the countIf method. - * @return a {@link CountIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountIfRequestBuilder countIf() { - return new CountIfRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the countIfs method. - * @return a {@link CountIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountIfsRequestBuilder countIfs() { - return new CountIfsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupDayBs method. - * @return a {@link CoupDayBsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDayBsRequestBuilder coupDayBs() { - return new CoupDayBsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupDays method. - * @return a {@link CoupDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDaysRequestBuilder coupDays() { - return new CoupDaysRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupDaysNc method. - * @return a {@link CoupDaysNcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDaysNcRequestBuilder coupDaysNc() { - return new CoupDaysNcRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupNcd method. - * @return a {@link CoupNcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupNcdRequestBuilder coupNcd() { - return new CoupNcdRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupNum method. - * @return a {@link CoupNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupNumRequestBuilder coupNum() { - return new CoupNumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the coupPcd method. - * @return a {@link CoupPcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupPcdRequestBuilder coupPcd() { - return new CoupPcdRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the csc method. - * @return a {@link CscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CscRequestBuilder csc() { - return new CscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the csch method. - * @return a {@link CschRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CschRequestBuilder csch() { - return new CschRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cumIPmt method. - * @return a {@link CumIPmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CumIPmtRequestBuilder cumIPmt() { - return new CumIPmtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cumPrinc method. - * @return a {@link CumPrincRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CumPrincRequestBuilder cumPrinc() { - return new CumPrincRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the date method. - * @return a {@link DateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DateRequestBuilder date() { - return new DateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the datevalue method. - * @return a {@link DatevalueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DatevalueRequestBuilder datevalue() { - return new DatevalueRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the daverage method. - * @return a {@link DaverageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DaverageRequestBuilder daverage() { - return new DaverageRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the day method. - * @return a {@link DayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DayRequestBuilder day() { - return new DayRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the days method. - * @return a {@link DaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DaysRequestBuilder days() { - return new DaysRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the days360 method. - * @return a {@link Days360RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Days360RequestBuilder days360() { - return new Days360RequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the db method. - * @return a {@link DbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DbRequestBuilder db() { - return new DbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dbcs method. - * @return a {@link DbcsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DbcsRequestBuilder dbcs() { - return new DbcsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dcount method. - * @return a {@link DcountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DcountRequestBuilder dcount() { - return new DcountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dcountA method. - * @return a {@link DcountARequestBuilder} - */ - @jakarta.annotation.Nonnull - public DcountARequestBuilder dcountA() { - return new DcountARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ddb method. - * @return a {@link DdbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DdbRequestBuilder ddb() { - return new DdbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dec2Bin method. - * @return a {@link Dec2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2BinRequestBuilder dec2Bin() { - return new Dec2BinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dec2Hex method. - * @return a {@link Dec2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2HexRequestBuilder dec2Hex() { - return new Dec2HexRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dec2Oct method. - * @return a {@link Dec2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2OctRequestBuilder dec2Oct() { - return new Dec2OctRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the decimal method. - * @return a {@link DecimalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DecimalRequestBuilder decimal() { - return new DecimalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the degrees method. - * @return a {@link DegreesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DegreesRequestBuilder degrees() { - return new DegreesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the delta method. - * @return a {@link DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder delta() { - return new DeltaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the devSq method. - * @return a {@link DevSqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DevSqRequestBuilder devSq() { - return new DevSqRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dget method. - * @return a {@link DgetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DgetRequestBuilder dget() { - return new DgetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the disc method. - * @return a {@link DiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DiscRequestBuilder disc() { - return new DiscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dmax method. - * @return a {@link DmaxRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DmaxRequestBuilder dmax() { - return new DmaxRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dmin method. - * @return a {@link DminRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DminRequestBuilder dmin() { - return new DminRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dollar method. - * @return a {@link DollarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarRequestBuilder dollar() { - return new DollarRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dollarDe method. - * @return a {@link DollarDeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarDeRequestBuilder dollarDe() { - return new DollarDeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dollarFr method. - * @return a {@link DollarFrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarFrRequestBuilder dollarFr() { - return new DollarFrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dproduct method. - * @return a {@link DproductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DproductRequestBuilder dproduct() { - return new DproductRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dstDev method. - * @return a {@link DstDevRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DstDevRequestBuilder dstDev() { - return new DstDevRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dstDevP method. - * @return a {@link DstDevPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DstDevPRequestBuilder dstDevP() { - return new DstDevPRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dsum method. - * @return a {@link DsumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DsumRequestBuilder dsum() { - return new DsumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the duration method. - * @return a {@link DurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DurationRequestBuilder duration() { - return new DurationRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dvar method. - * @return a {@link DvarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DvarRequestBuilder dvar() { - return new DvarRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dvarP method. - * @return a {@link DvarPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DvarPRequestBuilder dvarP() { - return new DvarPRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ecma_Ceiling method. - * @return a {@link EcmaCeilingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EcmaCeilingRequestBuilder ecmaCeiling() { - return new EcmaCeilingRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the edate method. - * @return a {@link EdateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EdateRequestBuilder edate() { - return new EdateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the effect method. - * @return a {@link EffectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EffectRequestBuilder effect() { - return new EffectRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the eoMonth method. - * @return a {@link EoMonthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EoMonthRequestBuilder eoMonth() { - return new EoMonthRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the erf method. - * @return a {@link ErfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfRequestBuilder erf() { - return new ErfRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the erfC method. - * @return a {@link ErfCRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfCRequestBuilder erfC() { - return new ErfCRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the erfC_Precise method. - * @return a {@link ErfCPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfCPreciseRequestBuilder erfCPrecise() { - return new ErfCPreciseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the erf_Precise method. - * @return a {@link ErfPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfPreciseRequestBuilder erfPrecise() { - return new ErfPreciseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the error_Type method. - * @return a {@link ErrorTypeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErrorTypeRequestBuilder errorType() { - return new ErrorTypeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the even method. - * @return a {@link EvenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EvenRequestBuilder even() { - return new EvenRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the exact method. - * @return a {@link ExactRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExactRequestBuilder exact() { - return new ExactRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the exp method. - * @return a {@link ExpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExpRequestBuilder exp() { - return new ExpRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the expon_Dist method. - * @return a {@link ExponDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExponDistRequestBuilder exponDist() { - return new ExponDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fact method. - * @return a {@link FactRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FactRequestBuilder fact() { - return new FactRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the factDouble method. - * @return a {@link FactDoubleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FactDoubleRequestBuilder factDouble() { - return new FactDoubleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the false method. - * @return a {@link FalseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FalseRequestBuilder falseEscaped() { - return new FalseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the f_Dist method. - * @return a {@link FDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FDistRequestBuilder fDist() { - return new FDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the f_Dist_RT method. - * @return a {@link FDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FDistRTRequestBuilder fDistRT() { - return new FDistRTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the find method. - * @return a {@link FindRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FindRequestBuilder find() { - return new FindRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the findB method. - * @return a {@link FindBRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FindBRequestBuilder findB() { - return new FindBRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the f_Inv method. - * @return a {@link FInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FInvRequestBuilder fInv() { - return new FInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the f_Inv_RT method. - * @return a {@link FInvRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FInvRTRequestBuilder fInvRT() { - return new FInvRTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fisher method. - * @return a {@link FisherRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FisherRequestBuilder fisher() { - return new FisherRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fisherInv method. - * @return a {@link FisherInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FisherInvRequestBuilder fisherInv() { - return new FisherInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fixed method. - * @return a {@link FixedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FixedRequestBuilder fixed() { - return new FixedRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the floor_Math method. - * @return a {@link FloorMathRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FloorMathRequestBuilder floorMath() { - return new FloorMathRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the floor_Precise method. - * @return a {@link FloorPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FloorPreciseRequestBuilder floorPrecise() { - return new FloorPreciseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fv method. - * @return a {@link FvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FvRequestBuilder fv() { - return new FvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the fvschedule method. - * @return a {@link FvscheduleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FvscheduleRequestBuilder fvschedule() { - return new FvscheduleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gamma method. - * @return a {@link GammaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaRequestBuilder gamma() { - return new GammaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gamma_Dist method. - * @return a {@link GammaDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaDistRequestBuilder gammaDist() { - return new GammaDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gamma_Inv method. - * @return a {@link GammaInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaInvRequestBuilder gammaInv() { - return new GammaInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gammaLn method. - * @return a {@link GammaLnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaLnRequestBuilder gammaLn() { - return new GammaLnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gammaLn_Precise method. - * @return a {@link GammaLnPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaLnPreciseRequestBuilder gammaLnPrecise() { - return new GammaLnPreciseRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gauss method. - * @return a {@link GaussRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GaussRequestBuilder gauss() { - return new GaussRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the gcd method. - * @return a {@link GcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GcdRequestBuilder gcd() { - return new GcdRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the geoMean method. - * @return a {@link GeoMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GeoMeanRequestBuilder geoMean() { - return new GeoMeanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the geStep method. - * @return a {@link GeStepRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GeStepRequestBuilder geStep() { - return new GeStepRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the harMean method. - * @return a {@link HarMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HarMeanRequestBuilder harMean() { - return new HarMeanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hex2Bin method. - * @return a {@link Hex2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2BinRequestBuilder hex2Bin() { - return new Hex2BinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hex2Dec method. - * @return a {@link Hex2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2DecRequestBuilder hex2Dec() { - return new Hex2DecRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hex2Oct method. - * @return a {@link Hex2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2OctRequestBuilder hex2Oct() { - return new Hex2OctRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hlookup method. - * @return a {@link HlookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HlookupRequestBuilder hlookup() { - return new HlookupRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hour method. - * @return a {@link HourRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HourRequestBuilder hour() { - return new HourRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hyperlink method. - * @return a {@link HyperlinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HyperlinkRequestBuilder hyperlink() { - return new HyperlinkRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the hypGeom_Dist method. - * @return a {@link HypGeomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HypGeomDistRequestBuilder hypGeomDist() { - return new HypGeomDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the if method. - * @return a {@link IfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IfRequestBuilder ifEscaped() { - return new IfRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imAbs method. - * @return a {@link ImAbsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImAbsRequestBuilder imAbs() { - return new ImAbsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imaginary method. - * @return a {@link ImaginaryRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImaginaryRequestBuilder imaginary() { - return new ImaginaryRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imArgument method. - * @return a {@link ImArgumentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImArgumentRequestBuilder imArgument() { - return new ImArgumentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imConjugate method. - * @return a {@link ImConjugateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImConjugateRequestBuilder imConjugate() { - return new ImConjugateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imCos method. - * @return a {@link ImCosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCosRequestBuilder imCos() { - return new ImCosRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imCosh method. - * @return a {@link ImCoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCoshRequestBuilder imCosh() { - return new ImCoshRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imCot method. - * @return a {@link ImCotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCotRequestBuilder imCot() { - return new ImCotRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imCsc method. - * @return a {@link ImCscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCscRequestBuilder imCsc() { - return new ImCscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imCsch method. - * @return a {@link ImCschRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCschRequestBuilder imCsch() { - return new ImCschRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imDiv method. - * @return a {@link ImDivRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImDivRequestBuilder imDiv() { - return new ImDivRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imExp method. - * @return a {@link ImExpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImExpRequestBuilder imExp() { - return new ImExpRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imLn method. - * @return a {@link ImLnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLnRequestBuilder imLn() { - return new ImLnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imLog10 method. - * @return a {@link ImLog10RequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLog10RequestBuilder imLog10() { - return new ImLog10RequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imLog2 method. - * @return a {@link ImLog2RequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLog2RequestBuilder imLog2() { - return new ImLog2RequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imPower method. - * @return a {@link ImPowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImPowerRequestBuilder imPower() { - return new ImPowerRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imProduct method. - * @return a {@link ImProductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImProductRequestBuilder imProduct() { - return new ImProductRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imReal method. - * @return a {@link ImRealRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImRealRequestBuilder imReal() { - return new ImRealRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSec method. - * @return a {@link ImSecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSecRequestBuilder imSec() { - return new ImSecRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSech method. - * @return a {@link ImSechRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSechRequestBuilder imSech() { - return new ImSechRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSin method. - * @return a {@link ImSinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSinRequestBuilder imSin() { - return new ImSinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSinh method. - * @return a {@link ImSinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSinhRequestBuilder imSinh() { - return new ImSinhRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSqrt method. - * @return a {@link ImSqrtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSqrtRequestBuilder imSqrt() { - return new ImSqrtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSub method. - * @return a {@link ImSubRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSubRequestBuilder imSub() { - return new ImSubRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imSum method. - * @return a {@link ImSumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSumRequestBuilder imSum() { - return new ImSumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the imTan method. - * @return a {@link ImTanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImTanRequestBuilder imTan() { - return new ImTanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the int method. - * @return a {@link IntRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IntRequestBuilder intEscaped() { - return new IntRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the intRate method. - * @return a {@link IntRateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IntRateRequestBuilder intRate() { - return new IntRateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ipmt method. - * @return a {@link IpmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IpmtRequestBuilder ipmt() { - return new IpmtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the irr method. - * @return a {@link IrrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IrrRequestBuilder irr() { - return new IrrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isErr method. - * @return a {@link IsErrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsErrRequestBuilder isErr() { - return new IsErrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isError method. - * @return a {@link IsErrorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsErrorRequestBuilder isError() { - return new IsErrorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isEven method. - * @return a {@link IsEvenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsEvenRequestBuilder isEven() { - return new IsEvenRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isFormula method. - * @return a {@link IsFormulaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsFormulaRequestBuilder isFormula() { - return new IsFormulaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isLogical method. - * @return a {@link IsLogicalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsLogicalRequestBuilder isLogical() { - return new IsLogicalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isNA method. - * @return a {@link IsNARequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNARequestBuilder isNA() { - return new IsNARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isNonText method. - * @return a {@link IsNonTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNonTextRequestBuilder isNonText() { - return new IsNonTextRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isNumber method. - * @return a {@link IsNumberRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNumberRequestBuilder isNumber() { - return new IsNumberRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the iso_Ceiling method. - * @return a {@link IsoCeilingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsoCeilingRequestBuilder isoCeiling() { - return new IsoCeilingRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isOdd method. - * @return a {@link IsOddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsOddRequestBuilder isOdd() { - return new IsOddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isoWeekNum method. - * @return a {@link IsoWeekNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsoWeekNumRequestBuilder isoWeekNum() { - return new IsoWeekNumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ispmt method. - * @return a {@link IspmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IspmtRequestBuilder ispmt() { - return new IspmtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isref method. - * @return a {@link IsrefRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsrefRequestBuilder isref() { - return new IsrefRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isText method. - * @return a {@link IsTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsTextRequestBuilder isText() { - return new IsTextRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the kurt method. - * @return a {@link KurtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public KurtRequestBuilder kurt() { - return new KurtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the large method. - * @return a {@link LargeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LargeRequestBuilder large() { - return new LargeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the lcm method. - * @return a {@link LcmRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LcmRequestBuilder lcm() { - return new LcmRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the left method. - * @return a {@link LeftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LeftRequestBuilder left() { - return new LeftRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the leftb method. - * @return a {@link LeftbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LeftbRequestBuilder leftb() { - return new LeftbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the len method. - * @return a {@link LenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LenRequestBuilder len() { - return new LenRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the lenb method. - * @return a {@link LenbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LenbRequestBuilder lenb() { - return new LenbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ln method. - * @return a {@link LnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LnRequestBuilder ln() { - return new LnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the log method. - * @return a {@link LogRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogRequestBuilder log() { - return new LogRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the log10 method. - * @return a {@link Log10RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Log10RequestBuilder log10() { - return new Log10RequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the logNorm_Dist method. - * @return a {@link LogNormDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogNormDistRequestBuilder logNormDist() { - return new LogNormDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the logNorm_Inv method. - * @return a {@link LogNormInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogNormInvRequestBuilder logNormInv() { - return new LogNormInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the lookup method. - * @return a {@link LookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LookupRequestBuilder lookup() { - return new LookupRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the lower method. - * @return a {@link LowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LowerRequestBuilder lower() { - return new LowerRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the match method. - * @return a {@link MatchRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MatchRequestBuilder match() { - return new MatchRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the max method. - * @return a {@link MaxRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MaxRequestBuilder max() { - return new MaxRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the maxA method. - * @return a {@link MaxARequestBuilder} - */ - @jakarta.annotation.Nonnull - public MaxARequestBuilder maxA() { - return new MaxARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the mduration method. - * @return a {@link MdurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MdurationRequestBuilder mduration() { - return new MdurationRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the median method. - * @return a {@link MedianRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MedianRequestBuilder median() { - return new MedianRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the mid method. - * @return a {@link MidRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MidRequestBuilder mid() { - return new MidRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the midb method. - * @return a {@link MidbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MidbRequestBuilder midb() { - return new MidbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the min method. - * @return a {@link MinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinRequestBuilder min() { - return new MinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the minA method. - * @return a {@link MinARequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinARequestBuilder minA() { - return new MinARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the minute method. - * @return a {@link MinuteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinuteRequestBuilder minute() { - return new MinuteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the mirr method. - * @return a {@link MirrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MirrRequestBuilder mirr() { - return new MirrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the mod method. - * @return a {@link ModRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ModRequestBuilder mod() { - return new ModRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the month method. - * @return a {@link MonthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MonthRequestBuilder month() { - return new MonthRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the mround method. - * @return a {@link MroundRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MroundRequestBuilder mround() { - return new MroundRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the multiNomial method. - * @return a {@link MultiNomialRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MultiNomialRequestBuilder multiNomial() { - return new MultiNomialRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the n method. - * @return a {@link NRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NRequestBuilder n() { - return new NRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the na method. - * @return a {@link NaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NaRequestBuilder na() { - return new NaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the negBinom_Dist method. - * @return a {@link NegBinomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NegBinomDistRequestBuilder negBinomDist() { - return new NegBinomDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the networkDays method. - * @return a {@link NetworkDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NetworkDaysRequestBuilder networkDays() { - return new NetworkDaysRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the networkDays_Intl method. - * @return a {@link NetworkDaysIntlRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NetworkDaysIntlRequestBuilder networkDaysIntl() { - return new NetworkDaysIntlRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the nominal method. - * @return a {@link NominalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NominalRequestBuilder nominal() { - return new NominalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the norm_Dist method. - * @return a {@link NormDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormDistRequestBuilder normDist() { - return new NormDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the norm_Inv method. - * @return a {@link NormInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormInvRequestBuilder normInv() { - return new NormInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the norm_S_Dist method. - * @return a {@link NormSDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormSDistRequestBuilder normSDist() { - return new NormSDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the norm_S_Inv method. - * @return a {@link NormSInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormSInvRequestBuilder normSInv() { - return new NormSInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the not method. - * @return a {@link NotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NotRequestBuilder not() { - return new NotRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the now method. - * @return a {@link NowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NowRequestBuilder now() { - return new NowRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the nper method. - * @return a {@link NperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NperRequestBuilder nper() { - return new NperRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the npv method. - * @return a {@link NpvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NpvRequestBuilder npv() { - return new NpvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the numberValue method. - * @return a {@link NumberValueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NumberValueRequestBuilder numberValue() { - return new NumberValueRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oct2Bin method. - * @return a {@link Oct2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2BinRequestBuilder oct2Bin() { - return new Oct2BinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oct2Dec method. - * @return a {@link Oct2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2DecRequestBuilder oct2Dec() { - return new Oct2DecRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oct2Hex method. - * @return a {@link Oct2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2HexRequestBuilder oct2Hex() { - return new Oct2HexRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the odd method. - * @return a {@link OddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddRequestBuilder odd() { - return new OddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oddFPrice method. - * @return a {@link OddFPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddFPriceRequestBuilder oddFPrice() { - return new OddFPriceRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oddFYield method. - * @return a {@link OddFYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddFYieldRequestBuilder oddFYield() { - return new OddFYieldRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oddLPrice method. - * @return a {@link OddLPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddLPriceRequestBuilder oddLPrice() { - return new OddLPriceRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the oddLYield method. - * @return a {@link OddLYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddLYieldRequestBuilder oddLYield() { - return new OddLYieldRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the or method. - * @return a {@link OrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OrRequestBuilder or() { - return new OrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the pduration method. - * @return a {@link PdurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PdurationRequestBuilder pduration() { - return new PdurationRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the percentile_Exc method. - * @return a {@link PercentileExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentileExcRequestBuilder percentileExc() { - return new PercentileExcRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the percentile_Inc method. - * @return a {@link PercentileIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentileIncRequestBuilder percentileInc() { - return new PercentileIncRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the percentRank_Exc method. - * @return a {@link PercentRankExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentRankExcRequestBuilder percentRankExc() { - return new PercentRankExcRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the percentRank_Inc method. - * @return a {@link PercentRankIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentRankIncRequestBuilder percentRankInc() { - return new PercentRankIncRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the permut method. - * @return a {@link PermutRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermutRequestBuilder permut() { - return new PermutRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the permutationa method. - * @return a {@link PermutationaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermutationaRequestBuilder permutationa() { - return new PermutationaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the phi method. - * @return a {@link PhiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PhiRequestBuilder phi() { - return new PhiRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the pi method. - * @return a {@link PiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PiRequestBuilder pi() { - return new PiRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the pmt method. - * @return a {@link PmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PmtRequestBuilder pmt() { - return new PmtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the poisson_Dist method. - * @return a {@link PoissonDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PoissonDistRequestBuilder poissonDist() { - return new PoissonDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the power method. - * @return a {@link PowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PowerRequestBuilder power() { - return new PowerRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the ppmt method. - * @return a {@link PpmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PpmtRequestBuilder ppmt() { - return new PpmtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the price method. - * @return a {@link PriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceRequestBuilder price() { - return new PriceRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the priceDisc method. - * @return a {@link PriceDiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceDiscRequestBuilder priceDisc() { - return new PriceDiscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the priceMat method. - * @return a {@link PriceMatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceMatRequestBuilder priceMat() { - return new PriceMatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the product method. - * @return a {@link ProductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProductRequestBuilder product() { - return new ProductRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the proper method. - * @return a {@link ProperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProperRequestBuilder proper() { - return new ProperRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the pv method. - * @return a {@link PvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PvRequestBuilder pv() { - return new PvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the quartile_Exc method. - * @return a {@link QuartileExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuartileExcRequestBuilder quartileExc() { - return new QuartileExcRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the quartile_Inc method. - * @return a {@link QuartileIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuartileIncRequestBuilder quartileInc() { - return new QuartileIncRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the quotient method. - * @return a {@link QuotientRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuotientRequestBuilder quotient() { - return new QuotientRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the radians method. - * @return a {@link RadiansRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RadiansRequestBuilder radians() { - return new RadiansRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rand method. - * @return a {@link RandRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RandRequestBuilder rand() { - return new RandRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the randBetween method. - * @return a {@link RandBetweenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RandBetweenRequestBuilder randBetween() { - return new RandBetweenRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rank_Avg method. - * @return a {@link RankAvgRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RankAvgRequestBuilder rankAvg() { - return new RankAvgRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rank_Eq method. - * @return a {@link RankEqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RankEqRequestBuilder rankEq() { - return new RankEqRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rate method. - * @return a {@link RateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RateRequestBuilder rate() { - return new RateRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the received method. - * @return a {@link ReceivedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReceivedRequestBuilder received() { - return new ReceivedRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the replace method. - * @return a {@link ReplaceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReplaceRequestBuilder replace() { - return new ReplaceRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the replaceB method. - * @return a {@link ReplaceBRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReplaceBRequestBuilder replaceB() { - return new ReplaceBRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rept method. - * @return a {@link ReptRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReptRequestBuilder rept() { - return new ReptRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the right method. - * @return a {@link RightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RightRequestBuilder right() { - return new RightRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rightb method. - * @return a {@link RightbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RightbRequestBuilder rightb() { - return new RightbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the roman method. - * @return a {@link RomanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RomanRequestBuilder roman() { - return new RomanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the round method. - * @return a {@link RoundRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundRequestBuilder round() { - return new RoundRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the roundDown method. - * @return a {@link RoundDownRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundDownRequestBuilder roundDown() { - return new RoundDownRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the roundUp method. - * @return a {@link RoundUpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundUpRequestBuilder roundUp() { - return new RoundUpRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rows method. - * @return a {@link RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder rows() { - return new RowsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the rri method. - * @return a {@link RriRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RriRequestBuilder rri() { - return new RriRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sec method. - * @return a {@link SecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SecRequestBuilder sec() { - return new SecRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sech method. - * @return a {@link SechRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SechRequestBuilder sech() { - return new SechRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the second method. - * @return a {@link SecondRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SecondRequestBuilder second() { - return new SecondRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the seriesSum method. - * @return a {@link SeriesSumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesSumRequestBuilder seriesSum() { - return new SeriesSumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sheet method. - * @return a {@link SheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SheetRequestBuilder sheet() { - return new SheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sheets method. - * @return a {@link SheetsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SheetsRequestBuilder sheets() { - return new SheetsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sign method. - * @return a {@link SignRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SignRequestBuilder sign() { - return new SignRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sin method. - * @return a {@link SinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SinRequestBuilder sin() { - return new SinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sinh method. - * @return a {@link SinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SinhRequestBuilder sinh() { - return new SinhRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the skew method. - * @return a {@link SkewRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SkewRequestBuilder skew() { - return new SkewRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the skew_p method. - * @return a {@link SkewPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SkewPRequestBuilder skewP() { - return new SkewPRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sln method. - * @return a {@link SlnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SlnRequestBuilder sln() { - return new SlnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the small method. - * @return a {@link SmallRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SmallRequestBuilder small() { - return new SmallRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sqrt method. - * @return a {@link SqrtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SqrtRequestBuilder sqrt() { - return new SqrtRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sqrtPi method. - * @return a {@link SqrtPiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SqrtPiRequestBuilder sqrtPi() { - return new SqrtPiRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the standardize method. - * @return a {@link StandardizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StandardizeRequestBuilder standardize() { - return new StandardizeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the stDevA method. - * @return a {@link StDevARequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevARequestBuilder stDevA() { - return new StDevARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the stDev_P method. - * @return a {@link StDevPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevPRequestBuilder stDevP() { - return new StDevPRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the stDevPA method. - * @return a {@link StDevPARequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevPARequestBuilder stDevPA() { - return new StDevPARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the stDev_S method. - * @return a {@link StDevSRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevSRequestBuilder stDevS() { - return new StDevSRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the substitute method. - * @return a {@link SubstituteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubstituteRequestBuilder substitute() { - return new SubstituteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the subtotal method. - * @return a {@link SubtotalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubtotalRequestBuilder subtotal() { - return new SubtotalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sum method. - * @return a {@link SumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumRequestBuilder sum() { - return new SumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sumIf method. - * @return a {@link SumIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumIfRequestBuilder sumIf() { - return new SumIfRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sumIfs method. - * @return a {@link SumIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumIfsRequestBuilder sumIfs() { - return new SumIfsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the sumSq method. - * @return a {@link SumSqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumSqRequestBuilder sumSq() { - return new SumSqRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the syd method. - * @return a {@link SydRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SydRequestBuilder syd() { - return new SydRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t method. - * @return a {@link TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TRequestBuilder t() { - return new TRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the tan method. - * @return a {@link TanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TanRequestBuilder tan() { - return new TanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the tanh method. - * @return a {@link TanhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TanhRequestBuilder tanh() { - return new TanhRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the tbillEq method. - * @return a {@link TbillEqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillEqRequestBuilder tbillEq() { - return new TbillEqRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the tbillPrice method. - * @return a {@link TbillPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillPriceRequestBuilder tbillPrice() { - return new TbillPriceRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the tbillYield method. - * @return a {@link TbillYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillYieldRequestBuilder tbillYield() { - return new TbillYieldRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t_Dist method. - * @return a {@link TDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDistRequestBuilder tDist() { - return new TDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t_Dist_2T method. - * @return a {@link TDist2TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDist2TRequestBuilder tDist2T() { - return new TDist2TRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t_Dist_RT method. - * @return a {@link TDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDistRTRequestBuilder tDistRT() { - return new TDistRTRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the text method. - * @return a {@link TextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TextRequestBuilder text() { - return new TextRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the time method. - * @return a {@link TimeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TimeRequestBuilder time() { - return new TimeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the timevalue method. - * @return a {@link TimevalueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TimevalueRequestBuilder timevalue() { - return new TimevalueRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t_Inv method. - * @return a {@link TInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TInvRequestBuilder tInv() { - return new TInvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the t_Inv_2T method. - * @return a {@link TInv2TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TInv2TRequestBuilder tInv2T() { - return new TInv2TRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the today method. - * @return a {@link TodayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TodayRequestBuilder today() { - return new TodayRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the trim method. - * @return a {@link TrimRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrimRequestBuilder trim() { - return new TrimRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the trimMean method. - * @return a {@link TrimMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrimMeanRequestBuilder trimMean() { - return new TrimMeanRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the true method. - * @return a {@link TrueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrueRequestBuilder trueEscaped() { - return new TrueRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the trunc method. - * @return a {@link TruncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TruncRequestBuilder trunc() { - return new TruncRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the type method. - * @return a {@link TypeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TypeRequestBuilder type() { - return new TypeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the unichar method. - * @return a {@link UnicharRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnicharRequestBuilder unichar() { - return new UnicharRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the unicode method. - * @return a {@link UnicodeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnicodeRequestBuilder unicode() { - return new UnicodeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the upper method. - * @return a {@link UpperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UpperRequestBuilder upper() { - return new UpperRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the usdollar method. - * @return a {@link UsdollarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsdollarRequestBuilder usdollar() { - return new UsdollarRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the value method. - * @return a {@link ValueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValueRequestBuilder value() { - return new ValueRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the varA method. - * @return a {@link VarARequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarARequestBuilder varA() { - return new VarARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the var_P method. - * @return a {@link VarPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarPRequestBuilder varP() { - return new VarPRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the varPA method. - * @return a {@link VarPARequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarPARequestBuilder varPA() { - return new VarPARequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the var_S method. - * @return a {@link VarSRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarSRequestBuilder varS() { - return new VarSRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the vdb method. - * @return a {@link VdbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VdbRequestBuilder vdb() { - return new VdbRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the vlookup method. - * @return a {@link VlookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VlookupRequestBuilder vlookup() { - return new VlookupRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the weekday method. - * @return a {@link WeekdayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeekdayRequestBuilder weekday() { - return new WeekdayRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the weekNum method. - * @return a {@link WeekNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeekNumRequestBuilder weekNum() { - return new WeekNumRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the weibull_Dist method. - * @return a {@link WeibullDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeibullDistRequestBuilder weibullDist() { - return new WeibullDistRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the workDay method. - * @return a {@link WorkDayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkDayRequestBuilder workDay() { - return new WorkDayRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the workDay_Intl method. - * @return a {@link WorkDayIntlRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkDayIntlRequestBuilder workDayIntl() { - return new WorkDayIntlRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the xirr method. - * @return a {@link XirrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XirrRequestBuilder xirr() { - return new XirrRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the xnpv method. - * @return a {@link XnpvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XnpvRequestBuilder xnpv() { - return new XnpvRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the xor method. - * @return a {@link XorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XorRequestBuilder xor() { - return new XorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the year method. - * @return a {@link YearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YearRequestBuilder year() { - return new YearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the yearFrac method. - * @return a {@link YearFracRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YearFracRequestBuilder yearFrac() { - return new YearFracRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the yield method. - * @return a {@link YieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldRequestBuilder yield() { - return new YieldRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the yieldDisc method. - * @return a {@link YieldDiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldDiscRequestBuilder yieldDisc() { - return new YieldDiscRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the yieldMat method. - * @return a {@link YieldMatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldMatRequestBuilder yieldMat() { - return new YieldMatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the z_Test method. - * @return a {@link ZTestRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ZTestRequestBuilder zTest() { - return new ZTestRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FunctionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FunctionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FunctionsRequestBuilder} 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 FunctionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property functions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property functions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get functions from storage - * @return a {@link WorkbookFunctions} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctions get() { - return get(null); - } - /** - * Get functions from storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctions} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctions get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctions::createFromDiscriminatorValue); - } - /** - * Update the navigation property functions in storage - * @param body The request body - * @return a {@link WorkbookFunctions} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctions patch(@jakarta.annotation.Nonnull final WorkbookFunctions body) { - return patch(body, null); - } - /** - * Update the navigation property functions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctions} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctions patch(@jakarta.annotation.Nonnull final WorkbookFunctions body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctions::createFromDiscriminatorValue); - } - /** - * Delete navigation property functions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property functions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get functions from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get functions from storage - * @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 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; - } - /** - * Update the navigation property functions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFunctions body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property functions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFunctions body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FunctionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FunctionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FunctionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get functions from storage - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java deleted file mode 100644 index fa291acfce6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs; - -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.serialization.UntypedNode; -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 AbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AbsPostRequestBody} and sets the default values. - */ - public AbsPostRequestBody() { - 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 AbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AbsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java deleted file mode 100644 index daf4e88dbe8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 abs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AbsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AbsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AbsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/abs", pathParameters); - } - /** - * Instantiates a new {@link AbsRequestBuilder} 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 AbsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/abs", rawUrl); - } - /** - * Invoke action abs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AbsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action abs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AbsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action abs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AbsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action abs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AbsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AbsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AbsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AbsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java deleted file mode 100644 index 60323b59795..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint; - -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.serialization.UntypedNode; -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 AccrIntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntPostRequestBody} and sets the default values. - */ - public AccrIntPostRequestBody() { - 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 AccrIntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the calcMethod property value. The calcMethod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCalcMethod() { - return this.backingStore.get("calcMethod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("calcMethod", (n) -> { this.setCalcMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstInterest", (n) -> { this.setFirstInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstInterest property value. The firstInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstInterest() { - return this.backingStore.get("firstInterest"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("calcMethod", this.getCalcMethod()); - writer.writeObjectValue("firstInterest", this.getFirstInterest()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the calcMethod property value. The calcMethod property - * @param value Value to set for the calcMethod property. - */ - public void setCalcMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("calcMethod", value); - } - /** - * Sets the firstInterest property value. The firstInterest property - * @param value Value to set for the firstInterest property. - */ - public void setFirstInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstInterest", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java deleted file mode 100644 index a069558cde1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 accrInt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AccrIntRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AccrIntRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrInt", pathParameters); - } - /** - * Instantiates a new {@link AccrIntRequestBuilder} 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 AccrIntRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrInt", rawUrl); - } - /** - * Invoke action accrInt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AccrIntPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action accrInt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AccrIntPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action accrInt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AccrIntPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action accrInt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AccrIntPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AccrIntRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AccrIntRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AccrIntRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java deleted file mode 100644 index 5ef3367af95..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm; - -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.serialization.UntypedNode; -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 AccrIntMPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntMPostRequestBody} and sets the default values. - */ - public AccrIntMPostRequestBody() { - 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 AccrIntMPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntMPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntMPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java deleted file mode 100644 index fdcd42ab96e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 accrIntM method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntMRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AccrIntMRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AccrIntMRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrIntM", pathParameters); - } - /** - * Instantiates a new {@link AccrIntMRequestBuilder} 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 AccrIntMRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrIntM", rawUrl); - } - /** - * Invoke action accrIntM - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AccrIntMPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action accrIntM - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AccrIntMPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action accrIntM - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AccrIntMPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action accrIntM - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AccrIntMPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AccrIntMRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AccrIntMRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AccrIntMRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java deleted file mode 100644 index 56b868a2107..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos; - -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.serialization.UntypedNode; -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 AcosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcosPostRequestBody} and sets the default values. - */ - public AcosPostRequestBody() { - 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 AcosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcosPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java deleted file mode 100644 index aadef3538bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 acos method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AcosRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AcosRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acos", pathParameters); - } - /** - * Instantiates a new {@link AcosRequestBuilder} 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 AcosRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acos", rawUrl); - } - /** - * Invoke action acos - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcosPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action acos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action acos - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcosPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action acos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AcosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcosRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AcosRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java deleted file mode 100644 index 2c2eb029d11..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh; - -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.serialization.UntypedNode; -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 AcoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcoshPostRequestBody} and sets the default values. - */ - public AcoshPostRequestBody() { - 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 AcoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcoshPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java deleted file mode 100644 index 9d41c550372..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 acosh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcoshRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AcoshRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AcoshRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acosh", pathParameters); - } - /** - * Instantiates a new {@link AcoshRequestBuilder} 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 AcoshRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acosh", rawUrl); - } - /** - * Invoke action acosh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcoshPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action acosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action acosh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcoshPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action acosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AcoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcoshRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AcoshRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java deleted file mode 100644 index 1d7293df862..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot; - -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.serialization.UntypedNode; -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 AcotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcotPostRequestBody} and sets the default values. - */ - public AcotPostRequestBody() { - 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 AcotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcotPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java deleted file mode 100644 index b6fdbb8919b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 acot method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcotRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AcotRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AcotRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acot", pathParameters); - } - /** - * Instantiates a new {@link AcotRequestBuilder} 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 AcotRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acot", rawUrl); - } - /** - * Invoke action acot - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcotPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action acot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action acot - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcotPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action acot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AcotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcotRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AcotRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java deleted file mode 100644 index 4c130c4be5b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth; - -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.serialization.UntypedNode; -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 AcothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcothPostRequestBody} and sets the default values. - */ - public AcothPostRequestBody() { - 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 AcothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcothPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java deleted file mode 100644 index 791c37efb2e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 acoth method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcothRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AcothRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AcothRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acoth", pathParameters); - } - /** - * Instantiates a new {@link AcothRequestBuilder} 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 AcothRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acoth", rawUrl); - } - /** - * Invoke action acoth - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcothPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action acoth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AcothPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action acoth - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcothPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action acoth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcothPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AcothRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AcothRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AcothRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java deleted file mode 100644 index 578b05d33bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc; - -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.serialization.UntypedNode; -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 AmorDegrcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorDegrcPostRequestBody} and sets the default values. - */ - public AmorDegrcPostRequestBody() { - 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 AmorDegrcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorDegrcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorDegrcPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java deleted file mode 100644 index 40df5d91515..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 amorDegrc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorDegrcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AmorDegrcRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AmorDegrcRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorDegrc", pathParameters); - } - /** - * Instantiates a new {@link AmorDegrcRequestBuilder} 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 AmorDegrcRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorDegrc", rawUrl); - } - /** - * Invoke action amorDegrc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AmorDegrcPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action amorDegrc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AmorDegrcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action amorDegrc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AmorDegrcPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action amorDegrc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AmorDegrcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AmorDegrcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AmorDegrcRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AmorDegrcRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java deleted file mode 100644 index 52182ea70b2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc; - -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.serialization.UntypedNode; -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 AmorLincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorLincPostRequestBody} and sets the default values. - */ - public AmorLincPostRequestBody() { - 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 AmorLincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorLincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorLincPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java deleted file mode 100644 index 007c5a4bdd4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 amorLinc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorLincRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AmorLincRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AmorLincRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorLinc", pathParameters); - } - /** - * Instantiates a new {@link AmorLincRequestBuilder} 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 AmorLincRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorLinc", rawUrl); - } - /** - * Invoke action amorLinc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AmorLincPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action amorLinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AmorLincPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action amorLinc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AmorLincPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action amorLinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AmorLincPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AmorLincRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AmorLincRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AmorLincRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java deleted file mode 100644 index 11c70e242b6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.and; - -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.serialization.UntypedNode; -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 AndPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AndPostRequestBody} and sets the default values. - */ - public AndPostRequestBody() { - 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 AndPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AndPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AndPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java deleted file mode 100644 index dbe6c2d2024..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.and; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 and method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AndRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AndRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AndRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/and", pathParameters); - } - /** - * Instantiates a new {@link AndRequestBuilder} 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 AndRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/and", rawUrl); - } - /** - * Invoke action and - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AndPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action and - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AndPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action and - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AndPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action and - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AndPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AndRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AndRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AndRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java deleted file mode 100644 index 2943cae8a17..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic; - -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.serialization.UntypedNode; -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 ArabicPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ArabicPostRequestBody} and sets the default values. - */ - public ArabicPostRequestBody() { - 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 ArabicPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ArabicPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ArabicPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java deleted file mode 100644 index 2ff4b489692..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 arabic method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ArabicRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ArabicRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ArabicRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/arabic", pathParameters); - } - /** - * Instantiates a new {@link ArabicRequestBuilder} 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 ArabicRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/arabic", rawUrl); - } - /** - * Invoke action arabic - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ArabicPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action arabic - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ArabicPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action arabic - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArabicPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action arabic - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArabicPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ArabicRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ArabicRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ArabicRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java deleted file mode 100644 index 99dca365600..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas; - -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.serialization.UntypedNode; -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 AreasPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AreasPostRequestBody} and sets the default values. - */ - public AreasPostRequestBody() { - 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 AreasPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AreasPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AreasPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * 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("reference", this.getReference()); - 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 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 reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java deleted file mode 100644 index 85b7f491584..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 areas method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AreasRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AreasRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AreasRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/areas", pathParameters); - } - /** - * Instantiates a new {@link AreasRequestBuilder} 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 AreasRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/areas", rawUrl); - } - /** - * Invoke action areas - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AreasPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action areas - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AreasPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action areas - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AreasPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action areas - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AreasPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AreasRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AreasRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AreasRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java deleted file mode 100644 index a1156a14f01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc; - -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.serialization.UntypedNode; -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 AscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AscPostRequestBody} and sets the default values. - */ - public AscPostRequestBody() { - 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 AscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java deleted file mode 100644 index accbb7db6a9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 asc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asc", pathParameters); - } - /** - * Instantiates a new {@link AscRequestBuilder} 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 AscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asc", rawUrl); - } - /** - * Invoke action asc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action asc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action asc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action asc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java deleted file mode 100644 index efef56ca3a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin; - -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.serialization.UntypedNode; -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 AsinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinPostRequestBody} and sets the default values. - */ - public AsinPostRequestBody() { - 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 AsinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java deleted file mode 100644 index 4b36b1933bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 asin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AsinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AsinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asin", pathParameters); - } - /** - * Instantiates a new {@link AsinRequestBuilder} 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 AsinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asin", rawUrl); - } - /** - * Invoke action asin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AsinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action asin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AsinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action asin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AsinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action asin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AsinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AsinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AsinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AsinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java deleted file mode 100644 index 8693e01e201..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh; - -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.serialization.UntypedNode; -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 AsinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinhPostRequestBody} and sets the default values. - */ - public AsinhPostRequestBody() { - 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 AsinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinhPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java deleted file mode 100644 index 432d2ff1221..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 asinh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AsinhRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AsinhRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asinh", pathParameters); - } - /** - * Instantiates a new {@link AsinhRequestBuilder} 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 AsinhRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asinh", rawUrl); - } - /** - * Invoke action asinh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AsinhPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action asinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AsinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action asinh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AsinhPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action asinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AsinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AsinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AsinhRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AsinhRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java deleted file mode 100644 index c38fb448bb0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan; - -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.serialization.UntypedNode; -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 AtanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanPostRequestBody} and sets the default values. - */ - public AtanPostRequestBody() { - 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 AtanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java deleted file mode 100644 index 2eabf5e0df9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 atan method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AtanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AtanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan", pathParameters); - } - /** - * Instantiates a new {@link AtanRequestBuilder} 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 AtanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan", rawUrl); - } - /** - * Invoke action atan - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AtanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action atan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AtanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action atan - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AtanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action atan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AtanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AtanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AtanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AtanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java deleted file mode 100644 index f4e02880744..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2; - -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.serialization.UntypedNode; -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 Atan2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Atan2PostRequestBody} and sets the default values. - */ - public Atan2PostRequestBody() { - 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 Atan2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Atan2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Atan2PostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("xNum", (n) -> { this.setXNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yNum", (n) -> { this.setYNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the xNum property value. The xNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getXNum() { - return this.backingStore.get("xNum"); - } - /** - * Gets the yNum property value. The yNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYNum() { - return this.backingStore.get("yNum"); - } - /** - * 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("xNum", this.getXNum()); - writer.writeObjectValue("yNum", this.getYNum()); - 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 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 xNum property value. The xNum property - * @param value Value to set for the xNum property. - */ - public void setXNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("xNum", value); - } - /** - * Sets the yNum property value. The yNum property - * @param value Value to set for the yNum property. - */ - public void setYNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java deleted file mode 100644 index f967c71f31d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 atan2 method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Atan2RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Atan2RequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Atan2RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan2", pathParameters); - } - /** - * Instantiates a new {@link Atan2RequestBuilder} 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 Atan2RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan2", rawUrl); - } - /** - * Invoke action atan2 - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Atan2PostRequestBody body) { - return post(body, null); - } - /** - * Invoke action atan2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Atan2PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action atan2 - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Atan2PostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action atan2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Atan2PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Atan2RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Atan2RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Atan2RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java deleted file mode 100644 index 45c0cdec840..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh; - -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.serialization.UntypedNode; -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 AtanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanhPostRequestBody} and sets the default values. - */ - public AtanhPostRequestBody() { - 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 AtanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanhPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java deleted file mode 100644 index c5076c43a33..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 atanh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AtanhRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AtanhRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atanh", pathParameters); - } - /** - * Instantiates a new {@link AtanhRequestBuilder} 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 AtanhRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atanh", rawUrl); - } - /** - * Invoke action atanh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AtanhPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action atanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AtanhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action atanh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AtanhPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action atanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AtanhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AtanhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AtanhRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AtanhRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java deleted file mode 100644 index bba78e4553c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev; - -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.serialization.UntypedNode; -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 AveDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveDevPostRequestBody} and sets the default values. - */ - public AveDevPostRequestBody() { - 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 AveDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveDevPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java deleted file mode 100644 index df2341715e0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 aveDev method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AveDevRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AveDevRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AveDevRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/aveDev", pathParameters); - } - /** - * Instantiates a new {@link AveDevRequestBuilder} 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 AveDevRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/aveDev", rawUrl); - } - /** - * Invoke action aveDev - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AveDevPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action aveDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AveDevPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action aveDev - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AveDevPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action aveDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AveDevPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AveDevRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AveDevRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AveDevRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java deleted file mode 100644 index 1bcdf028c44..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.average; - -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.serialization.UntypedNode; -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 AveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveragePostRequestBody} and sets the default values. - */ - public AveragePostRequestBody() { - 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 AveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveragePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java deleted file mode 100644 index 9dcb286c5c0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.average; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 average method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AverageRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AverageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/average", pathParameters); - } - /** - * Instantiates a new {@link AverageRequestBuilder} 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 AverageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/average", rawUrl); - } - /** - * Invoke action average - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AveragePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action average - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AveragePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action average - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AveragePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action average - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AveragePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AverageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AverageRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java deleted file mode 100644 index 65626d52398..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea; - -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.serialization.UntypedNode; -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 AverageAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageAPostRequestBody} and sets the default values. - */ - public AverageAPostRequestBody() { - 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 AverageAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java deleted file mode 100644 index 0ed430d6161..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 averageA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AverageARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AverageARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageA", pathParameters); - } - /** - * Instantiates a new {@link AverageARequestBuilder} 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 AverageARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageA", rawUrl); - } - /** - * Invoke action averageA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action averageA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action averageA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action averageA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AverageARequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AverageARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java deleted file mode 100644 index 8fe4b2e37fe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif; - -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.serialization.UntypedNode; -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 AverageIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfPostRequestBody} and sets the default values. - */ - public AverageIfPostRequestBody() { - 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 AverageIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * 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("averageRange", this.getAverageRange()); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java deleted file mode 100644 index 35b636b4fed..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 averageIf method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AverageIfRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AverageIfRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIf", pathParameters); - } - /** - * Instantiates a new {@link AverageIfRequestBuilder} 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 AverageIfRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIf", rawUrl); - } - /** - * Invoke action averageIf - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageIfPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action averageIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action averageIf - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageIfPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action averageIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AverageIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageIfRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AverageIfRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java deleted file mode 100644 index 5419c922afa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs; - -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.serialization.UntypedNode; -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 AverageIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfsPostRequestBody} and sets the default values. - */ - public AverageIfsPostRequestBody() { - 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 AverageIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("averageRange", this.getAverageRange()); - writer.writeObjectValue("values", this.getValues()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java deleted file mode 100644 index 11f76fab5d5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 averageIfs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AverageIfsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AverageIfsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIfs", pathParameters); - } - /** - * Instantiates a new {@link AverageIfsRequestBuilder} 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 AverageIfsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIfs", rawUrl); - } - /** - * Invoke action averageIfs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageIfsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action averageIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final AverageIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action averageIfs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageIfsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action averageIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AverageIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AverageIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AverageIfsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AverageIfsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java deleted file mode 100644 index 27975608faa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext; - -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.serialization.UntypedNode; -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 BahtTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BahtTextPostRequestBody} and sets the default values. - */ - public BahtTextPostRequestBody() { - 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 BahtTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BahtTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BahtTextPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java deleted file mode 100644 index 084cbecd0aa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bahtText method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BahtTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BahtTextRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BahtTextRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bahtText", pathParameters); - } - /** - * Instantiates a new {@link BahtTextRequestBuilder} 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 BahtTextRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bahtText", rawUrl); - } - /** - * Invoke action bahtText - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BahtTextPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bahtText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BahtTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bahtText - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BahtTextPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bahtText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BahtTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BahtTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BahtTextRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BahtTextRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java deleted file mode 100644 index 45cf4a001bd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.base; - -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.serialization.UntypedNode; -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 BasePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BasePostRequestBody} and sets the default values. - */ - public BasePostRequestBody() { - 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 BasePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BasePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BasePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("minLength", (n) -> { this.setMinLength(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the minLength property value. The minLength property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinLength() { - return this.backingStore.get("minLength"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * 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("minLength", this.getMinLength()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - 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 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 minLength property value. The minLength property - * @param value Value to set for the minLength property. - */ - public void setMinLength(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minLength", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index cac0ea76918..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.base; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 base method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BaseRequestBuilderEscaped extends BaseRequestBuilder { - /** - * Instantiates a new {@link BaseRequestBuilderEscaped} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BaseRequestBuilderEscaped(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/base", pathParameters); - } - /** - * Instantiates a new {@link BaseRequestBuilderEscaped} 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 BaseRequestBuilderEscaped(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/base", rawUrl); - } - /** - * Invoke action base - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BasePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action base - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BasePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action base - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BasePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action base - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BasePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BaseRequestBuilderEscaped} - */ - @jakarta.annotation.Nonnull - public BaseRequestBuilderEscaped withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BaseRequestBuilderEscaped(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java deleted file mode 100644 index a16306bed48..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli; - -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.serialization.UntypedNode; -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 BesselIPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselIPostRequestBody} and sets the default values. - */ - public BesselIPostRequestBody() { - 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 BesselIPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselIPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselIPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - 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 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 n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java deleted file mode 100644 index 0809ba91b01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 besselI method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselIRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BesselIRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BesselIRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselI", pathParameters); - } - /** - * Instantiates a new {@link BesselIRequestBuilder} 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 BesselIRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselI", rawUrl); - } - /** - * Invoke action besselI - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselIPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action besselI - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselIPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action besselI - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselIPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action besselI - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselIPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BesselIRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselIRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BesselIRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java deleted file mode 100644 index 34ecdaffec4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj; - -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.serialization.UntypedNode; -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 BesselJPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselJPostRequestBody} and sets the default values. - */ - public BesselJPostRequestBody() { - 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 BesselJPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselJPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselJPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - 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 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 n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java deleted file mode 100644 index 09065ec874f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 besselJ method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselJRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BesselJRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BesselJRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselJ", pathParameters); - } - /** - * Instantiates a new {@link BesselJRequestBuilder} 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 BesselJRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselJ", rawUrl); - } - /** - * Invoke action besselJ - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselJPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action besselJ - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselJPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action besselJ - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselJPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action besselJ - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselJPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BesselJRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselJRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BesselJRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java deleted file mode 100644 index ad3b09084cf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk; - -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.serialization.UntypedNode; -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 BesselKPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselKPostRequestBody} and sets the default values. - */ - public BesselKPostRequestBody() { - 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 BesselKPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselKPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselKPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - 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 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 n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java deleted file mode 100644 index 5bffa441448..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 besselK method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselKRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BesselKRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BesselKRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselK", pathParameters); - } - /** - * Instantiates a new {@link BesselKRequestBuilder} 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 BesselKRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselK", rawUrl); - } - /** - * Invoke action besselK - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselKPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action besselK - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselKPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action besselK - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselKPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action besselK - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselKPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BesselKRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselKRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BesselKRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java deleted file mode 100644 index 62c41a63fd6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely; - -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.serialization.UntypedNode; -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 BesselYPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselYPostRequestBody} and sets the default values. - */ - public BesselYPostRequestBody() { - 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 BesselYPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselYPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselYPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - 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 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 n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java deleted file mode 100644 index db67ebfbc2a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 besselY method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselYRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BesselYRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BesselYRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselY", pathParameters); - } - /** - * Instantiates a new {@link BesselYRequestBuilder} 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 BesselYRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselY", rawUrl); - } - /** - * Invoke action besselY - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselYPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action besselY - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BesselYPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action besselY - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselYPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action besselY - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BesselYPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BesselYRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BesselYRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BesselYRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java deleted file mode 100644 index 61b98a34a92..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist; - -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.serialization.UntypedNode; -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 BetaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaDistPostRequestBody} and sets the default values. - */ - public BetaDistPostRequestBody() { - 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 BetaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaDistPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", 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 beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java deleted file mode 100644 index 02f5f7a5e25..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 beta_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BetaDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BetaDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Dist", pathParameters); - } - /** - * Instantiates a new {@link BetaDistRequestBuilder} 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 BetaDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Dist", rawUrl); - } - /** - * Invoke action beta_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BetaDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action beta_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BetaDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action beta_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BetaDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action beta_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BetaDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BetaDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BetaDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BetaDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java deleted file mode 100644 index 01a26901d53..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv; - -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.serialization.UntypedNode; -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 BetaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaInvPostRequestBody} and sets the default values. - */ - public BetaInvPostRequestBody() { - 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 BetaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaInvPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", 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 beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java deleted file mode 100644 index e0c52573824..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 beta_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BetaInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BetaInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Inv", pathParameters); - } - /** - * Instantiates a new {@link BetaInvRequestBuilder} 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 BetaInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Inv", rawUrl); - } - /** - * Invoke action beta_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BetaInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action beta_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BetaInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action beta_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BetaInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action beta_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BetaInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BetaInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BetaInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BetaInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java deleted file mode 100644 index 47dfc1019b0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec; - -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.serialization.UntypedNode; -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 Bin2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2DecPostRequestBody} and sets the default values. - */ - public Bin2DecPostRequestBody() { - 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 Bin2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2DecPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java deleted file mode 100644 index 033ee03827c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bin2Dec method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2DecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Bin2DecRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Bin2DecRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Dec", pathParameters); - } - /** - * Instantiates a new {@link Bin2DecRequestBuilder} 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 Bin2DecRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Dec", rawUrl); - } - /** - * Invoke action bin2Dec - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2DecPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bin2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bin2Dec - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2DecPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bin2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Bin2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2DecRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Bin2DecRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java deleted file mode 100644 index 02c4cb37f04..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex; - -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.serialization.UntypedNode; -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 Bin2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2HexPostRequestBody} and sets the default values. - */ - public Bin2HexPostRequestBody() { - 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 Bin2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2HexPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java deleted file mode 100644 index 631bb858743..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bin2Hex method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2HexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Bin2HexRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Bin2HexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Hex", pathParameters); - } - /** - * Instantiates a new {@link Bin2HexRequestBuilder} 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 Bin2HexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Hex", rawUrl); - } - /** - * Invoke action bin2Hex - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2HexPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bin2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bin2Hex - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2HexPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bin2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Bin2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2HexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Bin2HexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java deleted file mode 100644 index e02862f1579..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct; - -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.serialization.UntypedNode; -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 Bin2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2OctPostRequestBody} and sets the default values. - */ - public Bin2OctPostRequestBody() { - 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 Bin2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2OctPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java deleted file mode 100644 index 44281daec4d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bin2Oct method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2OctRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Bin2OctRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Bin2OctRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Oct", pathParameters); - } - /** - * Instantiates a new {@link Bin2OctRequestBuilder} 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 Bin2OctRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Oct", rawUrl); - } - /** - * Invoke action bin2Oct - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2OctPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bin2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Bin2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bin2Oct - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2OctPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bin2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Bin2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Bin2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Bin2OctRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Bin2OctRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java deleted file mode 100644 index c4013a69f68..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist; - -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.serialization.UntypedNode; -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 BinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistPostRequestBody} and sets the default values. - */ - public BinomDistPostRequestBody() { - 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 BinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java deleted file mode 100644 index 52d5bfbcdf1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 binom_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BinomDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BinomDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist", pathParameters); - } - /** - * Instantiates a new {@link BinomDistRequestBuilder} 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 BinomDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist", rawUrl); - } - /** - * Invoke action binom_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action binom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action binom_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action binom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BinomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BinomDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java deleted file mode 100644 index 03d7fa6dbdb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range; - -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.serialization.UntypedNode; -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 BinomDistRangePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistRangePostRequestBody} and sets the default values. - */ - public BinomDistRangePostRequestBody() { - 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 BinomDistRangePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistRangePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistRangePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS2", (n) -> { this.setNumberS2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the numberS2 property value. The numberS2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS2() { - return this.backingStore.get("numberS2"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * 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("numberS", this.getNumberS()); - writer.writeObjectValue("numberS2", this.getNumberS2()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - 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 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 numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the numberS2 property value. The numberS2 property - * @param value Value to set for the numberS2 property. - */ - public void setNumberS2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS2", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java deleted file mode 100644 index d7b19f35318..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 binom_Dist_Range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BinomDistRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BinomDistRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist_Range", pathParameters); - } - /** - * Instantiates a new {@link BinomDistRangeRequestBuilder} 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 BinomDistRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist_Range", rawUrl); - } - /** - * Invoke action binom_Dist_Range - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomDistRangePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action binom_Dist_Range - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomDistRangePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action binom_Dist_Range - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomDistRangePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action binom_Dist_Range - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomDistRangePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BinomDistRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomDistRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BinomDistRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java deleted file mode 100644 index 332a606a98c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv; - -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.serialization.UntypedNode; -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 BinomInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomInvPostRequestBody} and sets the default values. - */ - public BinomInvPostRequestBody() { - 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 BinomInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java deleted file mode 100644 index 5e9d32384d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 binom_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BinomInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BinomInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Inv", pathParameters); - } - /** - * Instantiates a new {@link BinomInvRequestBuilder} 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 BinomInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Inv", rawUrl); - } - /** - * Invoke action binom_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action binom_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BinomInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action binom_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action binom_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BinomInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BinomInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BinomInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BinomInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java deleted file mode 100644 index 8d944126599..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand; - -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.serialization.UntypedNode; -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 BitandPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitandPostRequestBody} and sets the default values. - */ - public BitandPostRequestBody() { - 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 BitandPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitandPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitandPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * 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("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - 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 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 number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java deleted file mode 100644 index e66e50d5b8c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bitand method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitandRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BitandRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BitandRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitand", pathParameters); - } - /** - * Instantiates a new {@link BitandRequestBuilder} 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 BitandRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitand", rawUrl); - } - /** - * Invoke action bitand - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitandPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bitand - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitandPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bitand - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitandPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bitand - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitandPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BitandRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitandRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BitandRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java deleted file mode 100644 index f21a780236d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift; - -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.serialization.UntypedNode; -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 BitlshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitlshiftPostRequestBody} and sets the default values. - */ - public BitlshiftPostRequestBody() { - 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 BitlshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitlshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitlshiftPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java deleted file mode 100644 index 33803c1014a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bitlshift method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitlshiftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BitlshiftRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BitlshiftRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitlshift", pathParameters); - } - /** - * Instantiates a new {@link BitlshiftRequestBuilder} 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 BitlshiftRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitlshift", rawUrl); - } - /** - * Invoke action bitlshift - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitlshiftPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bitlshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitlshiftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bitlshift - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitlshiftPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bitlshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitlshiftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BitlshiftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitlshiftRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BitlshiftRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java deleted file mode 100644 index bc4f1a8b7a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor; - -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.serialization.UntypedNode; -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 BitorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitorPostRequestBody} and sets the default values. - */ - public BitorPostRequestBody() { - 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 BitorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * 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("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - 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 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 number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java deleted file mode 100644 index 2b7c74ef5c7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bitor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BitorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BitorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitor", pathParameters); - } - /** - * Instantiates a new {@link BitorRequestBuilder} 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 BitorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitor", rawUrl); - } - /** - * Invoke action bitor - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitorPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bitor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bitor - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bitor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BitorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BitorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java deleted file mode 100644 index cf5787a036c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift; - -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.serialization.UntypedNode; -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 BitrshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitrshiftPostRequestBody} and sets the default values. - */ - public BitrshiftPostRequestBody() { - 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 BitrshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitrshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitrshiftPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java deleted file mode 100644 index 3a5b461c504..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bitrshift method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitrshiftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BitrshiftRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BitrshiftRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitrshift", pathParameters); - } - /** - * Instantiates a new {@link BitrshiftRequestBuilder} 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 BitrshiftRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitrshift", rawUrl); - } - /** - * Invoke action bitrshift - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitrshiftPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bitrshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitrshiftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bitrshift - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitrshiftPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bitrshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitrshiftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BitrshiftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitrshiftRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BitrshiftRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java deleted file mode 100644 index e2b7d3d3325..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor; - -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.serialization.UntypedNode; -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 BitxorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitxorPostRequestBody} and sets the default values. - */ - public BitxorPostRequestBody() { - 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 BitxorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitxorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitxorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * 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("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - 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 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 number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java deleted file mode 100644 index 75adfb708b5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 bitxor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitxorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link BitxorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BitxorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitxor", pathParameters); - } - /** - * Instantiates a new {@link BitxorRequestBuilder} 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 BitxorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitxor", rawUrl); - } - /** - * Invoke action bitxor - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitxorPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action bitxor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final BitxorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action bitxor - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitxorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action bitxor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BitxorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 BitxorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BitxorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BitxorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java deleted file mode 100644 index 2117b876e7b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math; - -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.serialization.UntypedNode; -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 CeilingMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingMathPostRequestBody} and sets the default values. - */ - public CeilingMathPostRequestBody() { - 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 CeilingMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingMathPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java deleted file mode 100644 index 9f3f1e57994..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ceiling_Math method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingMathRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CeilingMathRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CeilingMathRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Math", pathParameters); - } - /** - * Instantiates a new {@link CeilingMathRequestBuilder} 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 CeilingMathRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Math", rawUrl); - } - /** - * Invoke action ceiling_Math - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CeilingMathPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ceiling_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CeilingMathPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ceiling_Math - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CeilingMathPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ceiling_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CeilingMathPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CeilingMathRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CeilingMathRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CeilingMathRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java deleted file mode 100644 index 54bed8b23c6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise; - -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.serialization.UntypedNode; -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 CeilingPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingPrecisePostRequestBody} and sets the default values. - */ - public CeilingPrecisePostRequestBody() { - 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 CeilingPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingPrecisePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java deleted file mode 100644 index 67cf4b96be9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ceiling_Precise method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingPreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CeilingPreciseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CeilingPreciseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Precise", pathParameters); - } - /** - * Instantiates a new {@link CeilingPreciseRequestBuilder} 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 CeilingPreciseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Precise", rawUrl); - } - /** - * Invoke action ceiling_Precise - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CeilingPrecisePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ceiling_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CeilingPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ceiling_Precise - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CeilingPrecisePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ceiling_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CeilingPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CeilingPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CeilingPreciseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CeilingPreciseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java deleted file mode 100644 index c9937c6b44e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped; - -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.serialization.UntypedNode; -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 CharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CharPostRequestBody} and sets the default values. - */ - public CharPostRequestBody() { - 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 CharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CharPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java deleted file mode 100644 index 56efae64fe7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 char method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CharRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CharRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CharRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/char", pathParameters); - } - /** - * Instantiates a new {@link CharRequestBuilder} 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 CharRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/char", rawUrl); - } - /** - * Invoke action char - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CharPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action char - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CharPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action char - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CharPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action char - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CharPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CharRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CharRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CharRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java deleted file mode 100644 index 6324af1a41a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist; - -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.serialization.UntypedNode; -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 ChiSqDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistPostRequestBody} and sets the default values. - */ - public ChiSqDistPostRequestBody() { - 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 ChiSqDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java deleted file mode 100644 index c56a079b375..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 chiSq_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChiSqDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChiSqDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist", pathParameters); - } - /** - * Instantiates a new {@link ChiSqDistRequestBuilder} 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 ChiSqDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist", rawUrl); - } - /** - * Invoke action chiSq_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action chiSq_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action chiSq_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action chiSq_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChiSqDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChiSqDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java deleted file mode 100644 index c467881e38f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -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.serialization.UntypedNode; -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 ChiSqDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistRTPostRequestBody} and sets the default values. - */ - public ChiSqDistRTPostRequestBody() { - 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 ChiSqDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistRTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java deleted file mode 100644 index 16429f71093..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 chiSq_Dist_RT method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistRTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChiSqDistRTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChiSqDistRTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT", pathParameters); - } - /** - * Instantiates a new {@link ChiSqDistRTRequestBuilder} 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 ChiSqDistRTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT", rawUrl); - } - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqDistRTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqDistRTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChiSqDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqDistRTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChiSqDistRTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java deleted file mode 100644 index 7cf0999af2a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv; - -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.serialization.UntypedNode; -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 ChiSqInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvPostRequestBody} and sets the default values. - */ - public ChiSqInvPostRequestBody() { - 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 ChiSqInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java deleted file mode 100644 index 7ed9e2d52fb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 chiSq_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChiSqInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChiSqInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv", pathParameters); - } - /** - * Instantiates a new {@link ChiSqInvRequestBuilder} 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 ChiSqInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv", rawUrl); - } - /** - * Invoke action chiSq_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action chiSq_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action chiSq_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action chiSq_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChiSqInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChiSqInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java deleted file mode 100644 index 381b32972a0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -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.serialization.UntypedNode; -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 ChiSqInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvRTPostRequestBody} and sets the default values. - */ - public ChiSqInvRTPostRequestBody() { - 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 ChiSqInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvRTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java deleted file mode 100644 index 47030229550..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 chiSq_Inv_RT method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvRTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChiSqInvRTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChiSqInvRTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv_RT", pathParameters); - } - /** - * Instantiates a new {@link ChiSqInvRTRequestBuilder} 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 ChiSqInvRTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv_RT", rawUrl); - } - /** - * Invoke action chiSq_Inv_RT - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqInvRTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action chiSq_Inv_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChiSqInvRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action chiSq_Inv_RT - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqInvRTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action chiSq_Inv_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChiSqInvRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChiSqInvRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChiSqInvRTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChiSqInvRTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java deleted file mode 100644 index c0d4e896392..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose; - -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.serialization.UntypedNode; -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 ChoosePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChoosePostRequestBody} and sets the default values. - */ - public ChoosePostRequestBody() { - 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 ChoosePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChoosePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChoosePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("indexNum", (n) -> { this.setIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the indexNum property value. The indexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIndexNum() { - return this.backingStore.get("indexNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("indexNum", this.getIndexNum()); - writer.writeObjectValue("values", this.getValues()); - 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 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 indexNum property value. The indexNum property - * @param value Value to set for the indexNum property. - */ - public void setIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("indexNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java deleted file mode 100644 index 8ed47c2bebe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 choose method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChooseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChooseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChooseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/choose", pathParameters); - } - /** - * Instantiates a new {@link ChooseRequestBuilder} 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 ChooseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/choose", rawUrl); - } - /** - * Invoke action choose - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChoosePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action choose - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ChoosePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action choose - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChoosePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action choose - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChoosePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChooseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChooseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChooseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java deleted file mode 100644 index aeea76e969f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean; - -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.serialization.UntypedNode; -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 CleanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CleanPostRequestBody} and sets the default values. - */ - public CleanPostRequestBody() { - 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 CleanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CleanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CleanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java deleted file mode 100644 index 2a1d6ab6afe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 clean method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CleanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CleanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CleanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/clean", pathParameters); - } - /** - * Instantiates a new {@link CleanRequestBuilder} 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 CleanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/clean", rawUrl); - } - /** - * Invoke action clean - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CleanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action clean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CleanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action clean - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CleanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action clean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CleanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CleanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CleanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CleanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java deleted file mode 100644 index 93a130047d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.code; - -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.serialization.UntypedNode; -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 CodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CodePostRequestBody} and sets the default values. - */ - public CodePostRequestBody() { - 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 CodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CodePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java deleted file mode 100644 index 55661607a3a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.code; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 code method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CodeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CodeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CodeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/code", pathParameters); - } - /** - * Instantiates a new {@link CodeRequestBuilder} 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 CodeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/code", rawUrl); - } - /** - * Invoke action code - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CodePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action code - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CodePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action code - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CodePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action code - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CodePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CodeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CodeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CodeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java deleted file mode 100644 index 4bd23edd99a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns; - -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.serialization.UntypedNode; -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 ColumnsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ColumnsPostRequestBody} and sets the default values. - */ - public ColumnsPostRequestBody() { - 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 ColumnsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ColumnsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ColumnsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("array", this.getArray()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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; - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 6b12f9c7e01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 columns method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/columns", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/columns", rawUrl); - } - /** - * Invoke action columns - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ColumnsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action columns - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ColumnsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action columns - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action columns - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java deleted file mode 100644 index bc4fa5f299f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin; - -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.serialization.UntypedNode; -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 CombinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinPostRequestBody} and sets the default values. - */ - public CombinPostRequestBody() { - 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 CombinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java deleted file mode 100644 index 5301e99d681..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 combin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CombinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CombinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combin", pathParameters); - } - /** - * Instantiates a new {@link CombinRequestBuilder} 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 CombinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combin", rawUrl); - } - /** - * Invoke action combin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CombinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action combin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CombinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action combin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CombinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action combin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CombinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CombinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CombinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CombinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java deleted file mode 100644 index b4a0eaf7b35..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina; - -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.serialization.UntypedNode; -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 CombinaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinaPostRequestBody} and sets the default values. - */ - public CombinaPostRequestBody() { - 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 CombinaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinaPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java deleted file mode 100644 index 5398f2557a1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 combina method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CombinaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CombinaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combina", pathParameters); - } - /** - * Instantiates a new {@link CombinaRequestBuilder} 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 CombinaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combina", rawUrl); - } - /** - * Invoke action combina - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CombinaPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action combina - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CombinaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action combina - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CombinaPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action combina - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CombinaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CombinaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CombinaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CombinaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java deleted file mode 100644 index 313458e2910..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex; - -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.serialization.UntypedNode; -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 ComplexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ComplexPostRequestBody} and sets the default values. - */ - public ComplexPostRequestBody() { - 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 ComplexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ComplexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ComplexPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("iNum", (n) -> { this.setINum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("realNum", (n) -> { this.setRealNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("suffix", (n) -> { this.setSuffix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the iNum property value. The iNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getINum() { - return this.backingStore.get("iNum"); - } - /** - * Gets the realNum property value. The realNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRealNum() { - return this.backingStore.get("realNum"); - } - /** - * Gets the suffix property value. The suffix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSuffix() { - return this.backingStore.get("suffix"); - } - /** - * 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("iNum", this.getINum()); - writer.writeObjectValue("realNum", this.getRealNum()); - writer.writeObjectValue("suffix", this.getSuffix()); - 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 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 iNum property value. The iNum property - * @param value Value to set for the iNum property. - */ - public void setINum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("iNum", value); - } - /** - * Sets the realNum property value. The realNum property - * @param value Value to set for the realNum property. - */ - public void setRealNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("realNum", value); - } - /** - * Sets the suffix property value. The suffix property - * @param value Value to set for the suffix property. - */ - public void setSuffix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("suffix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java deleted file mode 100644 index b67f88a8571..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 complex method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ComplexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ComplexRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ComplexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/complex", pathParameters); - } - /** - * Instantiates a new {@link ComplexRequestBuilder} 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 ComplexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/complex", rawUrl); - } - /** - * Invoke action complex - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ComplexPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action complex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ComplexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action complex - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ComplexPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action complex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ComplexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ComplexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ComplexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ComplexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java deleted file mode 100644 index 60f4965bf4a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate; - -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.serialization.UntypedNode; -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 ConcatenatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConcatenatePostRequestBody} and sets the default values. - */ - public ConcatenatePostRequestBody() { - 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 ConcatenatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConcatenatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConcatenatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java deleted file mode 100644 index ea37c527421..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 concatenate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConcatenateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConcatenateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConcatenateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/concatenate", pathParameters); - } - /** - * Instantiates a new {@link ConcatenateRequestBuilder} 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 ConcatenateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/concatenate", rawUrl); - } - /** - * Invoke action concatenate - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConcatenatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action concatenate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConcatenatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action concatenate - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConcatenatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action concatenate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConcatenatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ConcatenateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConcatenateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConcatenateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java deleted file mode 100644 index dceacdd1407..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm; - -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.serialization.UntypedNode; -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 ConfidenceNormPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceNormPostRequestBody} and sets the default values. - */ - public ConfidenceNormPostRequestBody() { - 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 ConfidenceNormPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceNormPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceNormPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java deleted file mode 100644 index d656728368a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 confidence_Norm method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceNormRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConfidenceNormRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConfidenceNormRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_Norm", pathParameters); - } - /** - * Instantiates a new {@link ConfidenceNormRequestBuilder} 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 ConfidenceNormRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_Norm", rawUrl); - } - /** - * Invoke action confidence_Norm - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConfidenceNormPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action confidence_Norm - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConfidenceNormPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action confidence_Norm - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfidenceNormPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action confidence_Norm - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfidenceNormPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ConfidenceNormRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConfidenceNormRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConfidenceNormRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java deleted file mode 100644 index 12d15e09662..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t; - -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.serialization.UntypedNode; -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 ConfidenceTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceTPostRequestBody} and sets the default values. - */ - public ConfidenceTPostRequestBody() { - 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 ConfidenceTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java deleted file mode 100644 index 6e4dce3cfdb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 confidence_T method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConfidenceTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConfidenceTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_T", pathParameters); - } - /** - * Instantiates a new {@link ConfidenceTRequestBuilder} 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 ConfidenceTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_T", rawUrl); - } - /** - * Invoke action confidence_T - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConfidenceTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action confidence_T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConfidenceTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action confidence_T - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfidenceTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action confidence_T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfidenceTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ConfidenceTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConfidenceTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConfidenceTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java deleted file mode 100644 index 4e2cfdb769e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert; - -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.serialization.UntypedNode; -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 ConvertPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConvertPostRequestBody} and sets the default values. - */ - public ConvertPostRequestBody() { - 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 ConvertPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConvertPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConvertPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fromUnit", (n) -> { this.setFromUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("toUnit", (n) -> { this.setToUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fromUnit property value. The fromUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFromUnit() { - return this.backingStore.get("fromUnit"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the toUnit property value. The toUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getToUnit() { - return this.backingStore.get("toUnit"); - } - /** - * 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("fromUnit", this.getFromUnit()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("toUnit", this.getToUnit()); - 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 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 fromUnit property value. The fromUnit property - * @param value Value to set for the fromUnit property. - */ - public void setFromUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fromUnit", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the toUnit property value. The toUnit property - * @param value Value to set for the toUnit property. - */ - public void setToUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("toUnit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java deleted file mode 100644 index 87e85da65d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 convert method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConvertRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConvertRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/convert", pathParameters); - } - /** - * Instantiates a new {@link ConvertRequestBuilder} 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 ConvertRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/convert", rawUrl); - } - /** - * Invoke action convert - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConvertPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action convert - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ConvertPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action convert - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConvertPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action convert - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConvertPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ConvertRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConvertRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java deleted file mode 100644 index 24eddc11528..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos; - -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.serialization.UntypedNode; -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 CosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CosPostRequestBody} and sets the default values. - */ - public CosPostRequestBody() { - 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 CosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CosPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java deleted file mode 100644 index 0bbb657b105..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cos method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CosRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CosRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cos", pathParameters); - } - /** - * Instantiates a new {@link CosRequestBuilder} 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 CosRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cos", rawUrl); - } - /** - * Invoke action cos - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CosPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action cos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action cos - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CosPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action cos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CosRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CosRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java deleted file mode 100644 index 1a08c529da0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh; - -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.serialization.UntypedNode; -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 CoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoshPostRequestBody} and sets the default values. - */ - public CoshPostRequestBody() { - 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 CoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoshPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java deleted file mode 100644 index 024f8e870c1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cosh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoshRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoshRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoshRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cosh", pathParameters); - } - /** - * Instantiates a new {@link CoshRequestBuilder} 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 CoshRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cosh", rawUrl); - } - /** - * Invoke action cosh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoshPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action cosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action cosh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoshPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action cosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoshRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoshRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java deleted file mode 100644 index d433edb0c12..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot; - -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.serialization.UntypedNode; -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 CotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CotPostRequestBody} and sets the default values. - */ - public CotPostRequestBody() { - 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 CotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CotPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java deleted file mode 100644 index dd7d5072300..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cot method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CotRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CotRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CotRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cot", pathParameters); - } - /** - * Instantiates a new {@link CotRequestBuilder} 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 CotRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cot", rawUrl); - } - /** - * Invoke action cot - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CotPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action cot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action cot - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CotPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action cot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CotRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CotRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java deleted file mode 100644 index 31a6eff0d71..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth; - -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.serialization.UntypedNode; -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 CothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CothPostRequestBody} and sets the default values. - */ - public CothPostRequestBody() { - 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 CothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CothPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java deleted file mode 100644 index e6b2346ba29..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coth method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CothRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CothRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CothRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coth", pathParameters); - } - /** - * Instantiates a new {@link CothRequestBuilder} 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 CothRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coth", rawUrl); - } - /** - * Invoke action coth - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CothPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CothPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coth - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CothPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CothPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CothRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CothRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CothRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java deleted file mode 100644 index 7d2821aaed6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.count; - -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.serialization.UntypedNode; -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 CountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountPostRequestBody} and sets the default values. - */ - public CountPostRequestBody() { - 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 CountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java deleted file mode 100644 index 47fa932d174..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.count; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/count", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/count", rawUrl); - } - /** - * Invoke action count - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action count - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action count - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action count - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java deleted file mode 100644 index eafc4ed0be7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta; - -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.serialization.UntypedNode; -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 CountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountAPostRequestBody} and sets the default values. - */ - public CountAPostRequestBody() { - 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 CountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java deleted file mode 100644 index 60d492b7369..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 countA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countA", pathParameters); - } - /** - * Instantiates a new {@link CountARequestBuilder} 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 CountARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countA", rawUrl); - } - /** - * Invoke action countA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action countA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action countA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action countA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CountARequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java deleted file mode 100644 index 03a58e5d4ba..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank; - -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.serialization.UntypedNode; -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 CountBlankPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountBlankPostRequestBody} and sets the default values. - */ - public CountBlankPostRequestBody() { - 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 CountBlankPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountBlankPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountBlankPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * 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("range", this.getRange()); - 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 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 range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java deleted file mode 100644 index a51b34eaeb1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 countBlank method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountBlankRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountBlankRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountBlankRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countBlank", pathParameters); - } - /** - * Instantiates a new {@link CountBlankRequestBuilder} 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 CountBlankRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countBlank", rawUrl); - } - /** - * Invoke action countBlank - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountBlankPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action countBlank - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountBlankPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action countBlank - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountBlankPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action countBlank - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountBlankPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CountBlankRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountBlankRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountBlankRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java deleted file mode 100644 index e0eb1f54717..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif; - -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.serialization.UntypedNode; -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 CountIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfPostRequestBody} and sets the default values. - */ - public CountIfPostRequestBody() { - 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 CountIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java deleted file mode 100644 index 017f94ea199..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 countIf method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountIfRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountIfRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIf", pathParameters); - } - /** - * Instantiates a new {@link CountIfRequestBuilder} 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 CountIfRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIf", rawUrl); - } - /** - * Invoke action countIf - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountIfPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action countIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action countIf - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountIfPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action countIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CountIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountIfRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountIfRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java deleted file mode 100644 index 73245519358..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs; - -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.serialization.UntypedNode; -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 CountIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfsPostRequestBody} and sets the default values. - */ - public CountIfsPostRequestBody() { - 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 CountIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java deleted file mode 100644 index 45217da279e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 countIfs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountIfsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountIfsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIfs", pathParameters); - } - /** - * Instantiates a new {@link CountIfsRequestBuilder} 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 CountIfsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIfs", rawUrl); - } - /** - * Invoke action countIfs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountIfsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action countIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CountIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action countIfs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountIfsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action countIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CountIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CountIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountIfsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountIfsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java deleted file mode 100644 index 480b04ba4c9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs; - -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.serialization.UntypedNode; -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 CoupDayBsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDayBsPostRequestBody} and sets the default values. - */ - public CoupDayBsPostRequestBody() { - 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 CoupDayBsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDayBsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDayBsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java deleted file mode 100644 index 728fe026c2f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupDayBs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDayBsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupDayBsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupDayBsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDayBs", pathParameters); - } - /** - * Instantiates a new {@link CoupDayBsRequestBuilder} 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 CoupDayBsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDayBs", rawUrl); - } - /** - * Invoke action coupDayBs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDayBsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupDayBs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDayBsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupDayBs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDayBsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupDayBs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDayBsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupDayBsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDayBsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupDayBsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java deleted file mode 100644 index 17edef2a958..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays; - -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.serialization.UntypedNode; -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 CoupDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysPostRequestBody} and sets the default values. - */ - public CoupDaysPostRequestBody() { - 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 CoupDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java deleted file mode 100644 index 8e6e24067bd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupDays method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupDaysRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupDaysRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDays", pathParameters); - } - /** - * Instantiates a new {@link CoupDaysRequestBuilder} 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 CoupDaysRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDays", rawUrl); - } - /** - * Invoke action coupDays - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDaysPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupDays - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDaysPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDaysRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupDaysRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java deleted file mode 100644 index c63735f1684..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc; - -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.serialization.UntypedNode; -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 CoupDaysNcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysNcPostRequestBody} and sets the default values. - */ - public CoupDaysNcPostRequestBody() { - 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 CoupDaysNcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysNcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysNcPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java deleted file mode 100644 index 76f4793d152..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupDaysNc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysNcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupDaysNcRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupDaysNcRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDaysNc", pathParameters); - } - /** - * Instantiates a new {@link CoupDaysNcRequestBuilder} 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 CoupDaysNcRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDaysNc", rawUrl); - } - /** - * Invoke action coupDaysNc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDaysNcPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupDaysNc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupDaysNcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupDaysNc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDaysNcPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupDaysNc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupDaysNcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupDaysNcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupDaysNcRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupDaysNcRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java deleted file mode 100644 index 2620b6d28e5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd; - -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.serialization.UntypedNode; -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 CoupNcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNcdPostRequestBody} and sets the default values. - */ - public CoupNcdPostRequestBody() { - 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 CoupNcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNcdPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java deleted file mode 100644 index 5252ffb1cdc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupNcd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNcdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupNcdRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupNcdRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNcd", pathParameters); - } - /** - * Instantiates a new {@link CoupNcdRequestBuilder} 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 CoupNcdRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNcd", rawUrl); - } - /** - * Invoke action coupNcd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupNcdPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupNcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupNcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupNcd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupNcdPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupNcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupNcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupNcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupNcdRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupNcdRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java deleted file mode 100644 index f9dca0fabc2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum; - -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.serialization.UntypedNode; -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 CoupNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNumPostRequestBody} and sets the default values. - */ - public CoupNumPostRequestBody() { - 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 CoupNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java deleted file mode 100644 index 62b3c18c8dd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupNum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupNumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupNumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNum", pathParameters); - } - /** - * Instantiates a new {@link CoupNumRequestBuilder} 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 CoupNumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNum", rawUrl); - } - /** - * Invoke action coupNum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupNumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupNum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupNumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupNumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupNumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java deleted file mode 100644 index d00c414b953..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd; - -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.serialization.UntypedNode; -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 CoupPcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupPcdPostRequestBody} and sets the default values. - */ - public CoupPcdPostRequestBody() { - 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 CoupPcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupPcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupPcdPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java deleted file mode 100644 index dea07d86bb1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 coupPcd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupPcdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CoupPcdRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CoupPcdRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupPcd", pathParameters); - } - /** - * Instantiates a new {@link CoupPcdRequestBuilder} 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 CoupPcdRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupPcd", rawUrl); - } - /** - * Invoke action coupPcd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupPcdPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action coupPcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CoupPcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action coupPcd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupPcdPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action coupPcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CoupPcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CoupPcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CoupPcdRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CoupPcdRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java deleted file mode 100644 index 52df1dcc4e6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc; - -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.serialization.UntypedNode; -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 CscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CscPostRequestBody} and sets the default values. - */ - public CscPostRequestBody() { - 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 CscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java deleted file mode 100644 index 8b76056de9d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 csc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csc", pathParameters); - } - /** - * Instantiates a new {@link CscRequestBuilder} 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 CscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csc", rawUrl); - } - /** - * Invoke action csc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action csc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action csc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action csc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java deleted file mode 100644 index 8aaba3118ee..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch; - -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.serialization.UntypedNode; -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 CschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CschPostRequestBody} and sets the default values. - */ - public CschPostRequestBody() { - 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 CschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CschPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java deleted file mode 100644 index 4e9c8d020ae..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 csch method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CschRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CschRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CschRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csch", pathParameters); - } - /** - * Instantiates a new {@link CschRequestBuilder} 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 CschRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csch", rawUrl); - } - /** - * Invoke action csch - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CschPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action csch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CschPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action csch - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CschPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action csch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CschPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CschRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CschRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CschRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java deleted file mode 100644 index dfe1bc7ddf3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt; - -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.serialization.UntypedNode; -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 CumIPmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumIPmtPostRequestBody} and sets the default values. - */ - public CumIPmtPostRequestBody() { - 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 CumIPmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumIPmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumIPmtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - 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 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 endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java deleted file mode 100644 index 02941222392..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cumIPmt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumIPmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CumIPmtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CumIPmtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumIPmt", pathParameters); - } - /** - * Instantiates a new {@link CumIPmtRequestBuilder} 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 CumIPmtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumIPmt", rawUrl); - } - /** - * Invoke action cumIPmt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CumIPmtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action cumIPmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CumIPmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action cumIPmt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CumIPmtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action cumIPmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CumIPmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CumIPmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CumIPmtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CumIPmtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java deleted file mode 100644 index 8449e787b9d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc; - -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.serialization.UntypedNode; -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 CumPrincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumPrincPostRequestBody} and sets the default values. - */ - public CumPrincPostRequestBody() { - 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 CumPrincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumPrincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumPrincPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - 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 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 endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java deleted file mode 100644 index 0ad9321a5bf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cumPrinc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumPrincRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CumPrincRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CumPrincRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumPrinc", pathParameters); - } - /** - * Instantiates a new {@link CumPrincRequestBuilder} 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 CumPrincRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumPrinc", rawUrl); - } - /** - * Invoke action cumPrinc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CumPrincPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action cumPrinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final CumPrincPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action cumPrinc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CumPrincPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action cumPrinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CumPrincPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CumPrincRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CumPrincRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CumPrincRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java deleted file mode 100644 index 0d7167d0e76..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.date; - -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.serialization.UntypedNode; -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 DatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatePostRequestBody} and sets the default values. - */ - public DatePostRequestBody() { - 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 DatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the day property value. The day property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDay() { - return this.backingStore.get("day"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("day", (n) -> { this.setDay(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("year", (n) -> { this.setYear(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the year property value. The year property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYear() { - return this.backingStore.get("year"); - } - /** - * 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("day", this.getDay()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("year", this.getYear()); - 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 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 day property value. The day property - * @param value Value to set for the day property. - */ - public void setDay(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("day", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the year property value. The year property - * @param value Value to set for the year property. - */ - public void setYear(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("year", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java deleted file mode 100644 index ada03f4c5e3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.date; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 date method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/date", pathParameters); - } - /** - * Instantiates a new {@link DateRequestBuilder} 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 DateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/date", rawUrl); - } - /** - * Invoke action date - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action date - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action date - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action date - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java deleted file mode 100644 index 77c4279e2c5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue; - -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.serialization.UntypedNode; -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 DatevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatevaluePostRequestBody} and sets the default values. - */ - public DatevaluePostRequestBody() { - 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 DatevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatevaluePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the dateText property value. The dateText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDateText() { - return this.backingStore.get("dateText"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("dateText", (n) -> { this.setDateText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("dateText", this.getDateText()); - 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 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 dateText property value. The dateText property - * @param value Value to set for the dateText property. - */ - public void setDateText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dateText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java deleted file mode 100644 index d242135cfab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 datevalue method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DatevalueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DatevalueRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DatevalueRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/datevalue", pathParameters); - } - /** - * Instantiates a new {@link DatevalueRequestBuilder} 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 DatevalueRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/datevalue", rawUrl); - } - /** - * Invoke action datevalue - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DatevaluePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action datevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DatevaluePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action datevalue - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DatevaluePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action datevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DatevaluePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DatevalueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DatevalueRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DatevalueRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java deleted file mode 100644 index ed1707e96a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage; - -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.serialization.UntypedNode; -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 DaveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaveragePostRequestBody} and sets the default values. - */ - public DaveragePostRequestBody() { - 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 DaveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaveragePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java deleted file mode 100644 index 647a0a1d469..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 daverage method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaverageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DaverageRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DaverageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/daverage", pathParameters); - } - /** - * Instantiates a new {@link DaverageRequestBuilder} 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 DaverageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/daverage", rawUrl); - } - /** - * Invoke action daverage - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DaveragePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action daverage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DaveragePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action daverage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DaveragePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action daverage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DaveragePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DaverageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DaverageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DaverageRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java deleted file mode 100644 index ef48b8df160..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.day; - -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.serialization.UntypedNode; -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 DayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DayPostRequestBody} and sets the default values. - */ - public DayPostRequestBody() { - 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 DayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DayPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java deleted file mode 100644 index 40454612b8c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.day; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 day method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DayRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DayRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/day", pathParameters); - } - /** - * Instantiates a new {@link DayRequestBuilder} 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 DayRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/day", rawUrl); - } - /** - * Invoke action day - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DayPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action day - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action day - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DayPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action day - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DayRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DayRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java deleted file mode 100644 index 999365a73a1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days; - -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.serialization.UntypedNode; -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 DaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaysPostRequestBody} and sets the default values. - */ - public DaysPostRequestBody() { - 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 DaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaysPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java deleted file mode 100644 index 30b7ae31254..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 days method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaysRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DaysRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DaysRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days", pathParameters); - } - /** - * Instantiates a new {@link DaysRequestBuilder} 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 DaysRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days", rawUrl); - } - /** - * Invoke action days - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DaysPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action days - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action days - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DaysPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action days - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DaysRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DaysRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java deleted file mode 100644 index aa2b9a09526..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360; - -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.serialization.UntypedNode; -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 Days360PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Days360PostRequestBody} and sets the default values. - */ - public Days360PostRequestBody() { - 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 Days360PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Days360PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Days360PostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("method", (n) -> { this.setMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the method property value. The method property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMethod() { - return this.backingStore.get("method"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("endDate", this.getEndDate()); - writer.writeObjectValue("method", this.getMethod()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the method property value. The method property - * @param value Value to set for the method property. - */ - public void setMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("method", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java deleted file mode 100644 index f2bb2404178..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 days360 method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Days360RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Days360RequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Days360RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days360", pathParameters); - } - /** - * Instantiates a new {@link Days360RequestBuilder} 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 Days360RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days360", rawUrl); - } - /** - * Invoke action days360 - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Days360PostRequestBody body) { - return post(body, null); - } - /** - * Invoke action days360 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Days360PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action days360 - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Days360PostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action days360 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Days360PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Days360RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Days360RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Days360RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java deleted file mode 100644 index e154d22d084..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.db; - -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.serialization.UntypedNode; -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 DbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbPostRequestBody} and sets the default values. - */ - public DbPostRequestBody() { - 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 DbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java deleted file mode 100644 index d1860d64dc8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.db; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 db method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/db", pathParameters); - } - /** - * Instantiates a new {@link DbRequestBuilder} 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 DbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/db", rawUrl); - } - /** - * Invoke action db - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action db - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action db - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action db - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java deleted file mode 100644 index c789ea529f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs; - -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.serialization.UntypedNode; -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 DbcsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbcsPostRequestBody} and sets the default values. - */ - public DbcsPostRequestBody() { - 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 DbcsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbcsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbcsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java deleted file mode 100644 index 865124edb6c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dbcs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbcsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DbcsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DbcsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dbcs", pathParameters); - } - /** - * Instantiates a new {@link DbcsRequestBuilder} 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 DbcsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dbcs", rawUrl); - } - /** - * Invoke action dbcs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DbcsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dbcs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DbcsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dbcs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DbcsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dbcs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DbcsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DbcsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DbcsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DbcsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java deleted file mode 100644 index 938bba7182c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount; - -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.serialization.UntypedNode; -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 DcountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountPostRequestBody} and sets the default values. - */ - public DcountPostRequestBody() { - 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 DcountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java deleted file mode 100644 index 686c3eacd0c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dcount method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DcountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DcountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcount", pathParameters); - } - /** - * Instantiates a new {@link DcountRequestBuilder} 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 DcountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcount", rawUrl); - } - /** - * Invoke action dcount - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DcountPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dcount - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DcountPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dcount - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DcountPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dcount - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DcountPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DcountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DcountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DcountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java deleted file mode 100644 index ffa7ab2e9f3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta; - -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.serialization.UntypedNode; -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 DcountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountAPostRequestBody} and sets the default values. - */ - public DcountAPostRequestBody() { - 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 DcountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java deleted file mode 100644 index 4ea382ee564..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dcountA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DcountARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DcountARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcountA", pathParameters); - } - /** - * Instantiates a new {@link DcountARequestBuilder} 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 DcountARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcountA", rawUrl); - } - /** - * Invoke action dcountA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DcountAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dcountA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DcountAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dcountA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DcountAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dcountA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DcountAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DcountARequestBuilder} - */ - @jakarta.annotation.Nonnull - public DcountARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DcountARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java deleted file mode 100644 index 3632c7561fa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb; - -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.serialization.UntypedNode; -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 DdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DdbPostRequestBody} and sets the default values. - */ - public DdbPostRequestBody() { - 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 DdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DdbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("cost", this.getCost()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java deleted file mode 100644 index 6e95dc7e605..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ddb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DdbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DdbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DdbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ddb", pathParameters); - } - /** - * Instantiates a new {@link DdbRequestBuilder} 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 DdbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ddb", rawUrl); - } - /** - * Invoke action ddb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DdbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ddb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DdbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ddb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DdbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ddb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DdbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DdbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DdbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DdbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java deleted file mode 100644 index 6019c6d8ce5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin; - -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.serialization.UntypedNode; -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 Dec2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2BinPostRequestBody} and sets the default values. - */ - public Dec2BinPostRequestBody() { - 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 Dec2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2BinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java deleted file mode 100644 index dbb95edba38..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dec2Bin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2BinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Dec2BinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Dec2BinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Bin", pathParameters); - } - /** - * Instantiates a new {@link Dec2BinRequestBuilder} 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 Dec2BinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Bin", rawUrl); - } - /** - * Invoke action dec2Bin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2BinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dec2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dec2Bin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2BinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dec2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Dec2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2BinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Dec2BinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java deleted file mode 100644 index 1be11b89044..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex; - -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.serialization.UntypedNode; -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 Dec2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2HexPostRequestBody} and sets the default values. - */ - public Dec2HexPostRequestBody() { - 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 Dec2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2HexPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java deleted file mode 100644 index cbc0e21f7e7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dec2Hex method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2HexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Dec2HexRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Dec2HexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Hex", pathParameters); - } - /** - * Instantiates a new {@link Dec2HexRequestBuilder} 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 Dec2HexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Hex", rawUrl); - } - /** - * Invoke action dec2Hex - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2HexPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dec2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dec2Hex - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2HexPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dec2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Dec2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2HexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Dec2HexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java deleted file mode 100644 index e05a63c6fa3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct; - -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.serialization.UntypedNode; -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 Dec2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2OctPostRequestBody} and sets the default values. - */ - public Dec2OctPostRequestBody() { - 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 Dec2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2OctPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java deleted file mode 100644 index 733454f3144..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dec2Oct method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2OctRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Dec2OctRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Dec2OctRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Oct", pathParameters); - } - /** - * Instantiates a new {@link Dec2OctRequestBuilder} 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 Dec2OctRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Oct", rawUrl); - } - /** - * Invoke action dec2Oct - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2OctPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dec2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Dec2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dec2Oct - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2OctPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dec2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Dec2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Dec2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Dec2OctRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Dec2OctRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java deleted file mode 100644 index 4b15c3549fd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal; - -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.serialization.UntypedNode; -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 DecimalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DecimalPostRequestBody} and sets the default values. - */ - public DecimalPostRequestBody() { - 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 DecimalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DecimalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DecimalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java deleted file mode 100644 index a628aa37232..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 decimal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DecimalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DecimalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DecimalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/decimal", pathParameters); - } - /** - * Instantiates a new {@link DecimalRequestBuilder} 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 DecimalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/decimal", rawUrl); - } - /** - * Invoke action decimal - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DecimalPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action decimal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DecimalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action decimal - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DecimalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action decimal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DecimalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DecimalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DecimalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DecimalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java deleted file mode 100644 index 6dcfce43151..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees; - -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.serialization.UntypedNode; -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 DegreesPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DegreesPostRequestBody} and sets the default values. - */ - public DegreesPostRequestBody() { - 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 DegreesPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DegreesPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DegreesPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("angle", this.getAngle()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", 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; - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java deleted file mode 100644 index 39094cdedc9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 degrees method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DegreesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DegreesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DegreesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/degrees", pathParameters); - } - /** - * Instantiates a new {@link DegreesRequestBuilder} 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 DegreesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/degrees", rawUrl); - } - /** - * Invoke action degrees - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DegreesPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action degrees - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DegreesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action degrees - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DegreesPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action degrees - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DegreesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DegreesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DegreesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DegreesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java deleted file mode 100644 index 329e5983364..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta; - -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.serialization.UntypedNode; -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 DeltaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DeltaPostRequestBody} and sets the default values. - */ - public DeltaPostRequestBody() { - 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 DeltaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DeltaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * 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("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - 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 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 number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java deleted file mode 100644 index 9f70a3d989a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 delta method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DeltaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DeltaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/delta", pathParameters); - } - /** - * Instantiates a new {@link DeltaRequestBuilder} 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 DeltaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/delta", rawUrl); - } - /** - * Invoke action delta - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DeltaPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action delta - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DeltaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action delta - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DeltaPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action delta - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DeltaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DeltaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java deleted file mode 100644 index 18580cce60f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq; - -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.serialization.UntypedNode; -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 DevSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DevSqPostRequestBody} and sets the default values. - */ - public DevSqPostRequestBody() { - 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 DevSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DevSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DevSqPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java deleted file mode 100644 index bc890f43e71..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 devSq method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DevSqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DevSqRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DevSqRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/devSq", pathParameters); - } - /** - * Instantiates a new {@link DevSqRequestBuilder} 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 DevSqRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/devSq", rawUrl); - } - /** - * Invoke action devSq - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DevSqPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action devSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DevSqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action devSq - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DevSqPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action devSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DevSqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DevSqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DevSqRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DevSqRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java deleted file mode 100644 index 90e954571fa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget; - -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.serialization.UntypedNode; -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 DgetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DgetPostRequestBody} and sets the default values. - */ - public DgetPostRequestBody() { - 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 DgetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DgetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DgetPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java deleted file mode 100644 index abc411bb832..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dget method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DgetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DgetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DgetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dget", pathParameters); - } - /** - * Instantiates a new {@link DgetRequestBuilder} 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 DgetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dget", rawUrl); - } - /** - * Invoke action dget - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DgetPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dget - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DgetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dget - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DgetPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dget - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DgetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DgetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DgetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DgetRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java deleted file mode 100644 index 4405e63c318..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc; - -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.serialization.UntypedNode; -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 DiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DiscPostRequestBody} and sets the default values. - */ - public DiscPostRequestBody() { - 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 DiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DiscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java deleted file mode 100644 index 2721462f268..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 disc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DiscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DiscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DiscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/disc", pathParameters); - } - /** - * Instantiates a new {@link DiscRequestBuilder} 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 DiscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/disc", rawUrl); - } - /** - * Invoke action disc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DiscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action disc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action disc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DiscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action disc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DiscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DiscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java deleted file mode 100644 index 332f1618263..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax; - -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.serialization.UntypedNode; -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 DmaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DmaxPostRequestBody} and sets the default values. - */ - public DmaxPostRequestBody() { - 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 DmaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DmaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DmaxPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java deleted file mode 100644 index 6a9807fb953..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dmax method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DmaxRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DmaxRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DmaxRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmax", pathParameters); - } - /** - * Instantiates a new {@link DmaxRequestBuilder} 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 DmaxRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmax", rawUrl); - } - /** - * Invoke action dmax - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DmaxPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dmax - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DmaxPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dmax - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DmaxPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dmax - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DmaxPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DmaxRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DmaxRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DmaxRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java deleted file mode 100644 index 02c264eaa28..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin; - -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.serialization.UntypedNode; -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 DminPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DminPostRequestBody} and sets the default values. - */ - public DminPostRequestBody() { - 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 DminPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DminPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DminPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java deleted file mode 100644 index dc5c10bbb21..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dmin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DminRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DminRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DminRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmin", pathParameters); - } - /** - * Instantiates a new {@link DminRequestBuilder} 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 DminRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmin", rawUrl); - } - /** - * Invoke action dmin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DminPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dmin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DminPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dmin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DminPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dmin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DminPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DminRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DminRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DminRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java deleted file mode 100644 index ce293e0fd2b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar; - -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.serialization.UntypedNode; -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 DollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarPostRequestBody} and sets the default values. - */ - public DollarPostRequestBody() { - 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 DollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java deleted file mode 100644 index 3123ef2dbec..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dollar method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DollarRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DollarRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollar", pathParameters); - } - /** - * Instantiates a new {@link DollarRequestBuilder} 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 DollarRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollar", rawUrl); - } - /** - * Invoke action dollar - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dollar - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DollarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DollarRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java deleted file mode 100644 index d6d55157e93..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde; - -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.serialization.UntypedNode; -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 DollarDePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarDePostRequestBody} and sets the default values. - */ - public DollarDePostRequestBody() { - 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 DollarDePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarDePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarDePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fractionalDollar", (n) -> { this.setFractionalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * Gets the fractionalDollar property value. The fractionalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFractionalDollar() { - return this.backingStore.get("fractionalDollar"); - } - /** - * 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("fraction", this.getFraction()); - writer.writeObjectValue("fractionalDollar", this.getFractionalDollar()); - 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 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 fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } - /** - * Sets the fractionalDollar property value. The fractionalDollar property - * @param value Value to set for the fractionalDollar property. - */ - public void setFractionalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fractionalDollar", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java deleted file mode 100644 index f619c52e10c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dollarDe method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarDeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DollarDeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DollarDeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarDe", pathParameters); - } - /** - * Instantiates a new {@link DollarDeRequestBuilder} 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 DollarDeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarDe", rawUrl); - } - /** - * Invoke action dollarDe - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarDePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dollarDe - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarDePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dollarDe - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarDePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dollarDe - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarDePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DollarDeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarDeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DollarDeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java deleted file mode 100644 index 21b91612334..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr; - -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.serialization.UntypedNode; -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 DollarFrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarFrPostRequestBody} and sets the default values. - */ - public DollarFrPostRequestBody() { - 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 DollarFrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarFrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarFrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the decimalDollar property value. The decimalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalDollar() { - return this.backingStore.get("decimalDollar"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimalDollar", (n) -> { this.setDecimalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * 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("decimalDollar", this.getDecimalDollar()); - writer.writeObjectValue("fraction", this.getFraction()); - 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 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 decimalDollar property value. The decimalDollar property - * @param value Value to set for the decimalDollar property. - */ - public void setDecimalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalDollar", value); - } - /** - * Sets the fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java deleted file mode 100644 index ea518c83c53..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dollarFr method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarFrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DollarFrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DollarFrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarFr", pathParameters); - } - /** - * Instantiates a new {@link DollarFrRequestBuilder} 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 DollarFrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarFr", rawUrl); - } - /** - * Invoke action dollarFr - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarFrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dollarFr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DollarFrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dollarFr - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarFrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dollarFr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DollarFrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DollarFrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DollarFrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DollarFrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java deleted file mode 100644 index ae6ed801979..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct; - -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.serialization.UntypedNode; -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 DproductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DproductPostRequestBody} and sets the default values. - */ - public DproductPostRequestBody() { - 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 DproductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DproductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DproductPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java deleted file mode 100644 index 5ff1fe3596e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dproduct method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DproductRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DproductRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DproductRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dproduct", pathParameters); - } - /** - * Instantiates a new {@link DproductRequestBuilder} 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 DproductRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dproduct", rawUrl); - } - /** - * Invoke action dproduct - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DproductPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dproduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DproductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dproduct - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DproductPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dproduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DproductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DproductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DproductRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DproductRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java deleted file mode 100644 index 9e391cea3d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev; - -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.serialization.UntypedNode; -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 DstDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPostRequestBody} and sets the default values. - */ - public DstDevPostRequestBody() { - 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 DstDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java deleted file mode 100644 index ca38acc0aab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dstDev method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DstDevRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DstDevRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDev", pathParameters); - } - /** - * Instantiates a new {@link DstDevRequestBuilder} 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 DstDevRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDev", rawUrl); - } - /** - * Invoke action dstDev - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DstDevPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dstDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DstDevPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dstDev - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DstDevPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dstDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DstDevPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DstDevRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DstDevRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DstDevRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java deleted file mode 100644 index 71f76fe7a2c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp; - -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.serialization.UntypedNode; -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 DstDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPPostRequestBody} and sets the default values. - */ - public DstDevPPostRequestBody() { - 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 DstDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java deleted file mode 100644 index 8d2865f0419..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dstDevP method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DstDevPRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DstDevPRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDevP", pathParameters); - } - /** - * Instantiates a new {@link DstDevPRequestBuilder} 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 DstDevPRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDevP", rawUrl); - } - /** - * Invoke action dstDevP - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DstDevPPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dstDevP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DstDevPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dstDevP - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DstDevPPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dstDevP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DstDevPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DstDevPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DstDevPRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DstDevPRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java deleted file mode 100644 index 5e8b9e58b61..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum; - -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.serialization.UntypedNode; -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 DsumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DsumPostRequestBody} and sets the default values. - */ - public DsumPostRequestBody() { - 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 DsumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DsumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DsumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java deleted file mode 100644 index b8e320494cc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dsum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DsumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DsumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DsumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dsum", pathParameters); - } - /** - * Instantiates a new {@link DsumRequestBuilder} 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 DsumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dsum", rawUrl); - } - /** - * Invoke action dsum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DsumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dsum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DsumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dsum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DsumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dsum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DsumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DsumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DsumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DsumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java deleted file mode 100644 index d35ad743de2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration; - -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.serialization.UntypedNode; -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 DurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DurationPostRequestBody} and sets the default values. - */ - public DurationPostRequestBody() { - 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 DurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DurationPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java deleted file mode 100644 index daa9879c9e6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 duration method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DurationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DurationRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DurationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/duration", pathParameters); - } - /** - * Instantiates a new {@link DurationRequestBuilder} 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 DurationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/duration", rawUrl); - } - /** - * Invoke action duration - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DurationPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action duration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action duration - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DurationPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action duration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DurationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DurationRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java deleted file mode 100644 index acefd52989f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar; - -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.serialization.UntypedNode; -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 DvarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPostRequestBody} and sets the default values. - */ - public DvarPostRequestBody() { - 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 DvarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java deleted file mode 100644 index eaed3b537d8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dvar method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DvarRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DvarRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvar", pathParameters); - } - /** - * Instantiates a new {@link DvarRequestBuilder} 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 DvarRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvar", rawUrl); - } - /** - * Invoke action dvar - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DvarPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dvar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DvarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dvar - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DvarPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dvar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DvarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DvarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DvarRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DvarRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java deleted file mode 100644 index 159d0008bdf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp; - -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.serialization.UntypedNode; -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 DvarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPPostRequestBody} and sets the default values. - */ - public DvarPPostRequestBody() { - 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 DvarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java deleted file mode 100644 index bedec0228c4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dvarP method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DvarPRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DvarPRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvarP", pathParameters); - } - /** - * Instantiates a new {@link DvarPRequestBuilder} 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 DvarPRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvarP", rawUrl); - } - /** - * Invoke action dvarP - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DvarPPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action dvarP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final DvarPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action dvarP - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DvarPPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action dvarP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DvarPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DvarPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DvarPRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DvarPRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java deleted file mode 100644 index 240f7a95287..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling; - -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.serialization.UntypedNode; -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 EcmaCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EcmaCeilingPostRequestBody} and sets the default values. - */ - public EcmaCeilingPostRequestBody() { - 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 EcmaCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EcmaCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EcmaCeilingPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java deleted file mode 100644 index 76499357e5c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ecma_Ceiling method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EcmaCeilingRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link EcmaCeilingRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public EcmaCeilingRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ecma_Ceiling", pathParameters); - } - /** - * Instantiates a new {@link EcmaCeilingRequestBuilder} 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 EcmaCeilingRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ecma_Ceiling", rawUrl); - } - /** - * Invoke action ecma_Ceiling - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EcmaCeilingPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ecma_Ceiling - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EcmaCeilingPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ecma_Ceiling - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EcmaCeilingPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ecma_Ceiling - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EcmaCeilingPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 EcmaCeilingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EcmaCeilingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new EcmaCeilingRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java deleted file mode 100644 index c63804dd701..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate; - -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.serialization.UntypedNode; -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 EdatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EdatePostRequestBody} and sets the default values. - */ - public EdatePostRequestBody() { - 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 EdatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EdatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EdatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java deleted file mode 100644 index a256e3b79a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 edate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EdateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link EdateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public EdateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/edate", pathParameters); - } - /** - * Instantiates a new {@link EdateRequestBuilder} 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 EdateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/edate", rawUrl); - } - /** - * Invoke action edate - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EdatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action edate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EdatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action edate - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EdatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action edate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EdatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 EdateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EdateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new EdateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java deleted file mode 100644 index 38a823cf814..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect; - -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.serialization.UntypedNode; -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 EffectPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EffectPostRequestBody} and sets the default values. - */ - public EffectPostRequestBody() { - 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 EffectPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EffectPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EffectPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("nominalRate", (n) -> { this.setNominalRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nominalRate property value. The nominalRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNominalRate() { - return this.backingStore.get("nominalRate"); - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * 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("nominalRate", this.getNominalRate()); - writer.writeObjectValue("npery", this.getNpery()); - 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 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 nominalRate property value. The nominalRate property - * @param value Value to set for the nominalRate property. - */ - public void setNominalRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nominalRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java deleted file mode 100644 index 8ec94fd2b9a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 effect method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EffectRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link EffectRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public EffectRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/effect", pathParameters); - } - /** - * Instantiates a new {@link EffectRequestBuilder} 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 EffectRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/effect", rawUrl); - } - /** - * Invoke action effect - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EffectPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action effect - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EffectPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action effect - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EffectPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action effect - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EffectPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 EffectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EffectRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new EffectRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java deleted file mode 100644 index cd150edc908..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth; - -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.serialization.UntypedNode; -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 EoMonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EoMonthPostRequestBody} and sets the default values. - */ - public EoMonthPostRequestBody() { - 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 EoMonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EoMonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EoMonthPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java deleted file mode 100644 index 5a94dd977a2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 eoMonth method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EoMonthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link EoMonthRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public EoMonthRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/eoMonth", pathParameters); - } - /** - * Instantiates a new {@link EoMonthRequestBuilder} 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 EoMonthRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/eoMonth", rawUrl); - } - /** - * Invoke action eoMonth - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EoMonthPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action eoMonth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EoMonthPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action eoMonth - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EoMonthPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action eoMonth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EoMonthPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 EoMonthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EoMonthRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new EoMonthRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java deleted file mode 100644 index fbb7626f463..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf; - -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.serialization.UntypedNode; -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 ErfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPostRequestBody} and sets the default values. - */ - public ErfPostRequestBody() { - 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 ErfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("lowerLimit", (n) -> { this.setLowerLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("upperLimit", (n) -> { this.setUpperLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lowerLimit property value. The lowerLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLowerLimit() { - return this.backingStore.get("lowerLimit"); - } - /** - * Gets the upperLimit property value. The upperLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getUpperLimit() { - return this.backingStore.get("upperLimit"); - } - /** - * 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("lowerLimit", this.getLowerLimit()); - writer.writeObjectValue("upperLimit", this.getUpperLimit()); - 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 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 lowerLimit property value. The lowerLimit property - * @param value Value to set for the lowerLimit property. - */ - public void setLowerLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lowerLimit", value); - } - /** - * Sets the upperLimit property value. The upperLimit property - * @param value Value to set for the upperLimit property. - */ - public void setUpperLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("upperLimit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java deleted file mode 100644 index 7e48a3c8612..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 erf method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ErfRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ErfRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf", pathParameters); - } - /** - * Instantiates a new {@link ErfRequestBuilder} 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 ErfRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf", rawUrl); - } - /** - * Invoke action erf - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action erf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action erf - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action erf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ErfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ErfRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java deleted file mode 100644 index 22103af3032..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise; - -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.serialization.UntypedNode; -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 ErfPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPrecisePostRequestBody} and sets the default values. - */ - public ErfPrecisePostRequestBody() { - 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 ErfPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPrecisePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("X", this.getX()); - 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 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 X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java deleted file mode 100644 index 1905f359089..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 erf_Precise method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfPreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ErfPreciseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ErfPreciseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf_Precise", pathParameters); - } - /** - * Instantiates a new {@link ErfPreciseRequestBuilder} 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 ErfPreciseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf_Precise", rawUrl); - } - /** - * Invoke action erf_Precise - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfPrecisePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action erf_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action erf_Precise - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfPrecisePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action erf_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ErfPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfPreciseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ErfPreciseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java deleted file mode 100644 index f9a397732ca..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc; - -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.serialization.UntypedNode; -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 ErfCPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPostRequestBody} and sets the default values. - */ - public ErfCPostRequestBody() { - 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 ErfCPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java deleted file mode 100644 index 05c45168661..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 erfC method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ErfCRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ErfCRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC", pathParameters); - } - /** - * Instantiates a new {@link ErfCRequestBuilder} 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 ErfCRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC", rawUrl); - } - /** - * Invoke action erfC - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfCPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action erfC - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfCPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action erfC - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfCPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action erfC - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfCPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ErfCRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfCRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ErfCRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java deleted file mode 100644 index 30eb1c03884..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise; - -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.serialization.UntypedNode; -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 ErfCPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPrecisePostRequestBody} and sets the default values. - */ - public ErfCPrecisePostRequestBody() { - 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 ErfCPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPrecisePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("X", this.getX()); - 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 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 X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java deleted file mode 100644 index 1646a3ded35..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 erfC_Precise method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCPreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ErfCPreciseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ErfCPreciseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC_Precise", pathParameters); - } - /** - * Instantiates a new {@link ErfCPreciseRequestBuilder} 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 ErfCPreciseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC_Precise", rawUrl); - } - /** - * Invoke action erfC_Precise - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfCPrecisePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action erfC_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErfCPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action erfC_Precise - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfCPrecisePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action erfC_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErfCPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ErfCPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErfCPreciseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ErfCPreciseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java deleted file mode 100644 index 4bfb635e576..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type; - -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.serialization.UntypedNode; -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 ErrorTypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErrorTypePostRequestBody} and sets the default values. - */ - public ErrorTypePostRequestBody() { - 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 ErrorTypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErrorTypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErrorTypePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the errorVal property value. The errorVal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getErrorVal() { - return this.backingStore.get("errorVal"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("errorVal", (n) -> { this.setErrorVal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("errorVal", this.getErrorVal()); - 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 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 errorVal property value. The errorVal property - * @param value Value to set for the errorVal property. - */ - public void setErrorVal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("errorVal", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java deleted file mode 100644 index 16692322e9a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 error_Type method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErrorTypeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ErrorTypeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ErrorTypeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/error_Type", pathParameters); - } - /** - * Instantiates a new {@link ErrorTypeRequestBuilder} 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 ErrorTypeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/error_Type", rawUrl); - } - /** - * Invoke action error_Type - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErrorTypePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action error_Type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ErrorTypePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action error_Type - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErrorTypePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action error_Type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ErrorTypePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ErrorTypeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ErrorTypeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ErrorTypeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java deleted file mode 100644 index f7260ebcf37..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.even; - -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.serialization.UntypedNode; -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 EvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EvenPostRequestBody} and sets the default values. - */ - public EvenPostRequestBody() { - 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 EvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EvenPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java deleted file mode 100644 index e222d5d5db7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.even; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 even method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EvenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link EvenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public EvenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/even", pathParameters); - } - /** - * Instantiates a new {@link EvenRequestBuilder} 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 EvenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/even", rawUrl); - } - /** - * Invoke action even - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EvenPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action even - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final EvenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action even - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EvenPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action even - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final EvenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 EvenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public EvenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new EvenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java deleted file mode 100644 index c7fec1d26d8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact; - -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.serialization.UntypedNode; -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 ExactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExactPostRequestBody} and sets the default values. - */ - public ExactPostRequestBody() { - 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 ExactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExactPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("text1", (n) -> { this.setText1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text2", (n) -> { this.setText2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text1 property value. The text1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText1() { - return this.backingStore.get("text1"); - } - /** - * Gets the text2 property value. The text2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText2() { - return this.backingStore.get("text2"); - } - /** - * 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("text1", this.getText1()); - writer.writeObjectValue("text2", this.getText2()); - 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 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 text1 property value. The text1 property - * @param value Value to set for the text1 property. - */ - public void setText1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text1", value); - } - /** - * Sets the text2 property value. The text2 property - * @param value Value to set for the text2 property. - */ - public void setText2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java deleted file mode 100644 index 526834f5157..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 exact method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExactRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExactRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExactRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exact", pathParameters); - } - /** - * Instantiates a new {@link ExactRequestBuilder} 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 ExactRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exact", rawUrl); - } - /** - * Invoke action exact - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExactPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action exact - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExactPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action exact - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExactPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action exact - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExactPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ExactRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExactRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExactRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java deleted file mode 100644 index a295e56a1a9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp; - -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.serialization.UntypedNode; -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 ExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExpPostRequestBody} and sets the default values. - */ - public ExpPostRequestBody() { - 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 ExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExpPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java deleted file mode 100644 index 7bbf01755ff..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 exp method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExpRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExpRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExpRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exp", pathParameters); - } - /** - * Instantiates a new {@link ExpRequestBuilder} 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 ExpRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exp", rawUrl); - } - /** - * Invoke action exp - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExpPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action exp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action exp - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExpPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action exp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ExpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExpRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExpRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java deleted file mode 100644 index 49f73ab4358..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist; - -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.serialization.UntypedNode; -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 ExponDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExponDistPostRequestBody} and sets the default values. - */ - public ExponDistPostRequestBody() { - 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 ExponDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExponDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExponDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lambda", (n) -> { this.setLambda(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lambda property value. The lambda property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLambda() { - return this.backingStore.get("lambda"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("lambda", this.getLambda()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the lambda property value. The lambda property - * @param value Value to set for the lambda property. - */ - public void setLambda(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lambda", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java deleted file mode 100644 index 132de1de16d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 expon_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExponDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExponDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExponDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/expon_Dist", pathParameters); - } - /** - * Instantiates a new {@link ExponDistRequestBuilder} 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 ExponDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/expon_Dist", rawUrl); - } - /** - * Invoke action expon_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExponDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action expon_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ExponDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action expon_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExponDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action expon_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ExponDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ExponDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExponDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExponDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java deleted file mode 100644 index 621abf65958..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist; - -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.serialization.UntypedNode; -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 FDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistPostRequestBody} and sets the default values. - */ - public FDistPostRequestBody() { - 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 FDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java deleted file mode 100644 index 1601bba01b8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 f_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist", pathParameters); - } - /** - * Instantiates a new {@link FDistRequestBuilder} 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 FDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist", rawUrl); - } - /** - * Invoke action f_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action f_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action f_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action f_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java deleted file mode 100644 index bff1b3baee9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt; - -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.serialization.UntypedNode; -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 FDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistRTPostRequestBody} and sets the default values. - */ - public FDistRTPostRequestBody() { - 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 FDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistRTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - 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 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 degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java deleted file mode 100644 index 0cefe05beda..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 f_Dist_RT method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistRTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FDistRTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FDistRTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist_RT", pathParameters); - } - /** - * Instantiates a new {@link FDistRTRequestBuilder} 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 FDistRTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist_RT", rawUrl); - } - /** - * Invoke action f_Dist_RT - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FDistRTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action f_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action f_Dist_RT - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FDistRTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action f_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FDistRTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FDistRTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java deleted file mode 100644 index 3d09990c04b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv; - -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.serialization.UntypedNode; -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 FInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvPostRequestBody} and sets the default values. - */ - public FInvPostRequestBody() { - 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 FInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java deleted file mode 100644 index 5cf53d71d75..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 f_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv", pathParameters); - } - /** - * Instantiates a new {@link FInvRequestBuilder} 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 FInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv", rawUrl); - } - /** - * Invoke action f_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action f_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action f_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action f_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java deleted file mode 100644 index 5bef482d77f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt; - -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.serialization.UntypedNode; -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 FInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvRTPostRequestBody} and sets the default values. - */ - public FInvRTPostRequestBody() { - 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 FInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvRTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java deleted file mode 100644 index 73a26b7006e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 f_Inv_RT method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvRTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FInvRTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FInvRTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv_RT", pathParameters); - } - /** - * Instantiates a new {@link FInvRTRequestBuilder} 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 FInvRTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv_RT", rawUrl); - } - /** - * Invoke action f_Inv_RT - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FInvRTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action f_Inv_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FInvRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action f_Inv_RT - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FInvRTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action f_Inv_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FInvRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FInvRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FInvRTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FInvRTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java deleted file mode 100644 index 5e181681487..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact; - -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.serialization.UntypedNode; -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 FactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactPostRequestBody} and sets the default values. - */ - public FactPostRequestBody() { - 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 FactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java deleted file mode 100644 index 16a4dd24420..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fact method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FactRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FactRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fact", pathParameters); - } - /** - * Instantiates a new {@link FactRequestBuilder} 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 FactRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fact", rawUrl); - } - /** - * Invoke action fact - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FactPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fact - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FactPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fact - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FactPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fact - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FactPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FactRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FactRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FactRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java deleted file mode 100644 index 3c716c2c790..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble; - -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.serialization.UntypedNode; -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 FactDoublePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactDoublePostRequestBody} and sets the default values. - */ - public FactDoublePostRequestBody() { - 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 FactDoublePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactDoublePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactDoublePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java deleted file mode 100644 index b6d26768289..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 factDouble method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactDoubleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FactDoubleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FactDoubleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/factDouble", pathParameters); - } - /** - * Instantiates a new {@link FactDoubleRequestBuilder} 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 FactDoubleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/factDouble", rawUrl); - } - /** - * Invoke action factDouble - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FactDoublePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action factDouble - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FactDoublePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action factDouble - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FactDoublePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action factDouble - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FactDoublePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FactDoubleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FactDoubleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FactDoubleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java deleted file mode 100644 index 872a9732a27..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.falseescaped; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 false method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FalseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FalseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FalseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/false", pathParameters); - } - /** - * Instantiates a new {@link FalseRequestBuilder} 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 FalseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/false", rawUrl); - } - /** - * Invoke action false - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action false - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action false - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action false - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 FalseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FalseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FalseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java deleted file mode 100644 index 7e0a39fe545..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.find; - -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.serialization.UntypedNode; -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 FindPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindPostRequestBody} and sets the default values. - */ - public FindPostRequestBody() { - 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 FindPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * 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("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - 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 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 findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java deleted file mode 100644 index 53572e2b0f6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.find; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 find method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FindRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FindRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/find", pathParameters); - } - /** - * Instantiates a new {@link FindRequestBuilder} 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 FindRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/find", rawUrl); - } - /** - * Invoke action find - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FindPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action find - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FindPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action find - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FindPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action find - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FindPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FindRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FindRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FindRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java deleted file mode 100644 index 2681c457d8b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb; - -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.serialization.UntypedNode; -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 FindBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindBPostRequestBody} and sets the default values. - */ - public FindBPostRequestBody() { - 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 FindBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindBPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * 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("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - 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 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 findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java deleted file mode 100644 index ffdd5172b44..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 findB method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindBRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FindBRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FindBRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/findB", pathParameters); - } - /** - * Instantiates a new {@link FindBRequestBuilder} 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 FindBRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/findB", rawUrl); - } - /** - * Invoke action findB - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FindBPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action findB - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FindBPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action findB - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FindBPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action findB - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FindBPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FindBRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FindBRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FindBRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java deleted file mode 100644 index 3ed845ba956..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher; - -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.serialization.UntypedNode; -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 FisherPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherPostRequestBody} and sets the default values. - */ - public FisherPostRequestBody() { - 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 FisherPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java deleted file mode 100644 index 70d56f14c49..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fisher method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FisherRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FisherRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisher", pathParameters); - } - /** - * Instantiates a new {@link FisherRequestBuilder} 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 FisherRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisher", rawUrl); - } - /** - * Invoke action fisher - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FisherPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fisher - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FisherPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fisher - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FisherPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fisher - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FisherPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FisherRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FisherRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FisherRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java deleted file mode 100644 index c0eafbcd002..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv; - -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.serialization.UntypedNode; -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 FisherInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherInvPostRequestBody} and sets the default values. - */ - public FisherInvPostRequestBody() { - 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 FisherInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("y", (n) -> { this.setY(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the y property value. The y property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getY() { - return this.backingStore.get("y"); - } - /** - * 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("y", this.getY()); - 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 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 y property value. The y property - * @param value Value to set for the y property. - */ - public void setY(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("y", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java deleted file mode 100644 index ae1d8e8540b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fisherInv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FisherInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FisherInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisherInv", pathParameters); - } - /** - * Instantiates a new {@link FisherInvRequestBuilder} 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 FisherInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisherInv", rawUrl); - } - /** - * Invoke action fisherInv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FisherInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fisherInv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FisherInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fisherInv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FisherInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fisherInv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FisherInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FisherInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FisherInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FisherInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java deleted file mode 100644 index cd148c64b22..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed; - -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.serialization.UntypedNode; -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 FixedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FixedPostRequestBody} and sets the default values. - */ - public FixedPostRequestBody() { - 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 FixedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FixedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FixedPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noCommas", (n) -> { this.setNoCommas(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the noCommas property value. The noCommas property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoCommas() { - return this.backingStore.get("noCommas"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("decimals", this.getDecimals()); - writer.writeObjectValue("noCommas", this.getNoCommas()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the noCommas property value. The noCommas property - * @param value Value to set for the noCommas property. - */ - public void setNoCommas(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noCommas", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java deleted file mode 100644 index 203300935e3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fixed method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FixedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FixedRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FixedRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fixed", pathParameters); - } - /** - * Instantiates a new {@link FixedRequestBuilder} 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 FixedRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fixed", rawUrl); - } - /** - * Invoke action fixed - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FixedPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fixed - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FixedPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fixed - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FixedPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fixed - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FixedPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FixedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FixedRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FixedRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java deleted file mode 100644 index 65e3d792be2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math; - -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.serialization.UntypedNode; -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 FloorMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorMathPostRequestBody} and sets the default values. - */ - public FloorMathPostRequestBody() { - 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 FloorMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorMathPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java deleted file mode 100644 index 8a505e85fb0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 floor_Math method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorMathRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FloorMathRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FloorMathRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Math", pathParameters); - } - /** - * Instantiates a new {@link FloorMathRequestBuilder} 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 FloorMathRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Math", rawUrl); - } - /** - * Invoke action floor_Math - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FloorMathPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action floor_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FloorMathPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action floor_Math - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FloorMathPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action floor_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FloorMathPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FloorMathRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FloorMathRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FloorMathRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java deleted file mode 100644 index 93bc4370d2c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise; - -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.serialization.UntypedNode; -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 FloorPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorPrecisePostRequestBody} and sets the default values. - */ - public FloorPrecisePostRequestBody() { - 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 FloorPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorPrecisePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java deleted file mode 100644 index c899d23c984..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 floor_Precise method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorPreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FloorPreciseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FloorPreciseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Precise", pathParameters); - } - /** - * Instantiates a new {@link FloorPreciseRequestBuilder} 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 FloorPreciseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Precise", rawUrl); - } - /** - * Invoke action floor_Precise - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FloorPrecisePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action floor_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FloorPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action floor_Precise - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FloorPrecisePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action floor_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FloorPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FloorPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FloorPreciseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FloorPreciseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java deleted file mode 100644 index 76817ff79f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv; - -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.serialization.UntypedNode; -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 FvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvPostRequestBody} and sets the default values. - */ - public FvPostRequestBody() { - 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 FvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java deleted file mode 100644 index 01003c20f9c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fv", pathParameters); - } - /** - * Instantiates a new {@link FvRequestBuilder} 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 FvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fv", rawUrl); - } - /** - * Invoke action fv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java deleted file mode 100644 index 55e02cdd0dd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule; - -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.serialization.UntypedNode; -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 FvschedulePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvschedulePostRequestBody} and sets the default values. - */ - public FvschedulePostRequestBody() { - 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 FvschedulePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvschedulePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvschedulePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("principal", (n) -> { this.setPrincipal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("schedule", (n) -> { this.setSchedule(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the principal property value. The principal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPrincipal() { - return this.backingStore.get("principal"); - } - /** - * Gets the schedule property value. The schedule property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSchedule() { - return this.backingStore.get("schedule"); - } - /** - * 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("principal", this.getPrincipal()); - writer.writeObjectValue("schedule", this.getSchedule()); - 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 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 principal property value. The principal property - * @param value Value to set for the principal property. - */ - public void setPrincipal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("principal", value); - } - /** - * Sets the schedule property value. The schedule property - * @param value Value to set for the schedule property. - */ - public void setSchedule(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("schedule", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java deleted file mode 100644 index 2eac89f1608..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 fvschedule method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvscheduleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FvscheduleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FvscheduleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fvschedule", pathParameters); - } - /** - * Instantiates a new {@link FvscheduleRequestBuilder} 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 FvscheduleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fvschedule", rawUrl); - } - /** - * Invoke action fvschedule - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FvschedulePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action fvschedule - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final FvschedulePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action fvschedule - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FvschedulePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action fvschedule - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FvschedulePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FvscheduleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FvscheduleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FvscheduleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java deleted file mode 100644 index e4489dca2bf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma; - -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.serialization.UntypedNode; -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 GammaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaPostRequestBody} and sets the default values. - */ - public GammaPostRequestBody() { - 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 GammaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java deleted file mode 100644 index ef07591f4e2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gamma method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GammaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GammaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma", pathParameters); - } - /** - * Instantiates a new {@link GammaRequestBuilder} 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 GammaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma", rawUrl); - } - /** - * Invoke action gamma - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gamma - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gamma - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gamma - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GammaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GammaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java deleted file mode 100644 index 1aebf76f4c3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist; - -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.serialization.UntypedNode; -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 GammaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaDistPostRequestBody} and sets the default values. - */ - public GammaDistPostRequestBody() { - 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 GammaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java deleted file mode 100644 index 4377f5cd5e1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gamma_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GammaDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GammaDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Dist", pathParameters); - } - /** - * Instantiates a new {@link GammaDistRequestBuilder} 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 GammaDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Dist", rawUrl); - } - /** - * Invoke action gamma_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gamma_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gamma_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gamma_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GammaDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GammaDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java deleted file mode 100644 index 569c8bbaac2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv; - -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.serialization.UntypedNode; -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 GammaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaInvPostRequestBody} and sets the default values. - */ - public GammaInvPostRequestBody() { - 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 GammaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java deleted file mode 100644 index 0db1361e9a4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gamma_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GammaInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GammaInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Inv", pathParameters); - } - /** - * Instantiates a new {@link GammaInvRequestBuilder} 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 GammaInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Inv", rawUrl); - } - /** - * Invoke action gamma_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gamma_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gamma_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gamma_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GammaInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GammaInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java deleted file mode 100644 index b8cca1ecc0e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln; - -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.serialization.UntypedNode; -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 GammaLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPostRequestBody} and sets the default values. - */ - public GammaLnPostRequestBody() { - 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 GammaLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java deleted file mode 100644 index 375cb79ca46..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gammaLn method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GammaLnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GammaLnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn", pathParameters); - } - /** - * Instantiates a new {@link GammaLnRequestBuilder} 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 GammaLnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn", rawUrl); - } - /** - * Invoke action gammaLn - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaLnPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gammaLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaLnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gammaLn - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaLnPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gammaLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaLnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GammaLnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaLnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GammaLnRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java deleted file mode 100644 index fdbf2105515..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise; - -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.serialization.UntypedNode; -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 GammaLnPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPrecisePostRequestBody} and sets the default values. - */ - public GammaLnPrecisePostRequestBody() { - 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 GammaLnPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPrecisePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java deleted file mode 100644 index 2aa63f2af3c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gammaLn_Precise method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnPreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GammaLnPreciseRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GammaLnPreciseRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise", pathParameters); - } - /** - * Instantiates a new {@link GammaLnPreciseRequestBuilder} 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 GammaLnPreciseRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise", rawUrl); - } - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaLnPrecisePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GammaLnPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaLnPrecisePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GammaLnPrecisePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GammaLnPreciseRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GammaLnPreciseRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GammaLnPreciseRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java deleted file mode 100644 index deebd5c13ab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss; - -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.serialization.UntypedNode; -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 GaussPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GaussPostRequestBody} and sets the default values. - */ - public GaussPostRequestBody() { - 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 GaussPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GaussPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GaussPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java deleted file mode 100644 index d2ff677038b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gauss method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GaussRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GaussRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GaussRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gauss", pathParameters); - } - /** - * Instantiates a new {@link GaussRequestBuilder} 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 GaussRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gauss", rawUrl); - } - /** - * Invoke action gauss - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GaussPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gauss - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GaussPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gauss - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GaussPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gauss - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GaussPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GaussRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GaussRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GaussRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java deleted file mode 100644 index ff17fc0c937..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd; - -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.serialization.UntypedNode; -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 GcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GcdPostRequestBody} and sets the default values. - */ - public GcdPostRequestBody() { - 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 GcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GcdPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java deleted file mode 100644 index 54f8e0d9475..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 gcd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GcdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GcdRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GcdRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gcd", pathParameters); - } - /** - * Instantiates a new {@link GcdRequestBuilder} 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 GcdRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gcd", rawUrl); - } - /** - * Invoke action gcd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GcdPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action gcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action gcd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GcdPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action gcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GcdPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GcdRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GcdRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GcdRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java deleted file mode 100644 index 88e5e3512d3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean; - -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.serialization.UntypedNode; -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 GeoMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeoMeanPostRequestBody} and sets the default values. - */ - public GeoMeanPostRequestBody() { - 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 GeoMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeoMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeoMeanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java deleted file mode 100644 index c42c7b7e708..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 geoMean method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeoMeanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GeoMeanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GeoMeanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geoMean", pathParameters); - } - /** - * Instantiates a new {@link GeoMeanRequestBuilder} 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 GeoMeanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geoMean", rawUrl); - } - /** - * Invoke action geoMean - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GeoMeanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action geoMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GeoMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action geoMean - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GeoMeanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action geoMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GeoMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GeoMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GeoMeanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GeoMeanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java deleted file mode 100644 index 0dfa8645e88..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep; - -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.serialization.UntypedNode; -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 GeStepPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeStepPostRequestBody} and sets the default values. - */ - public GeStepPostRequestBody() { - 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 GeStepPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeStepPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeStepPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("step", (n) -> { this.setStep(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the step property value. The step property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStep() { - return this.backingStore.get("step"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("step", this.getStep()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the step property value. The step property - * @param value Value to set for the step property. - */ - public void setStep(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("step", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java deleted file mode 100644 index b6a004d393e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 geStep method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeStepRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GeStepRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GeStepRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geStep", pathParameters); - } - /** - * Instantiates a new {@link GeStepRequestBuilder} 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 GeStepRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geStep", rawUrl); - } - /** - * Invoke action geStep - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GeStepPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action geStep - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final GeStepPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action geStep - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GeStepPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action geStep - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final GeStepPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 GeStepRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GeStepRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GeStepRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java deleted file mode 100644 index d6ee4265610..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean; - -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.serialization.UntypedNode; -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 HarMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HarMeanPostRequestBody} and sets the default values. - */ - public HarMeanPostRequestBody() { - 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 HarMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HarMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HarMeanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java deleted file mode 100644 index 114f9e612a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 harMean method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HarMeanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HarMeanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HarMeanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/harMean", pathParameters); - } - /** - * Instantiates a new {@link HarMeanRequestBuilder} 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 HarMeanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/harMean", rawUrl); - } - /** - * Invoke action harMean - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HarMeanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action harMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HarMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action harMean - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HarMeanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action harMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HarMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 HarMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HarMeanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HarMeanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java deleted file mode 100644 index ace7f75a555..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin; - -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.serialization.UntypedNode; -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 Hex2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2BinPostRequestBody} and sets the default values. - */ - public Hex2BinPostRequestBody() { - 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 Hex2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2BinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java deleted file mode 100644 index 9d8d7ad1b01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hex2Bin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2BinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Hex2BinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Hex2BinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Bin", pathParameters); - } - /** - * Instantiates a new {@link Hex2BinRequestBuilder} 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 Hex2BinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Bin", rawUrl); - } - /** - * Invoke action hex2Bin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2BinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hex2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hex2Bin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2BinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hex2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Hex2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2BinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Hex2BinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java deleted file mode 100644 index a5aa67c32c5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec; - -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.serialization.UntypedNode; -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 Hex2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2DecPostRequestBody} and sets the default values. - */ - public Hex2DecPostRequestBody() { - 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 Hex2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2DecPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java deleted file mode 100644 index 27f01ed5487..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hex2Dec method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2DecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Hex2DecRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Hex2DecRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Dec", pathParameters); - } - /** - * Instantiates a new {@link Hex2DecRequestBuilder} 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 Hex2DecRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Dec", rawUrl); - } - /** - * Invoke action hex2Dec - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2DecPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hex2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hex2Dec - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2DecPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hex2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Hex2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2DecRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Hex2DecRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java deleted file mode 100644 index e88b7fbe1c9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct; - -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.serialization.UntypedNode; -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 Hex2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2OctPostRequestBody} and sets the default values. - */ - public Hex2OctPostRequestBody() { - 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 Hex2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2OctPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java deleted file mode 100644 index 88204a326e9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hex2Oct method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2OctRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Hex2OctRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Hex2OctRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Oct", pathParameters); - } - /** - * Instantiates a new {@link Hex2OctRequestBuilder} 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 Hex2OctRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Oct", rawUrl); - } - /** - * Invoke action hex2Oct - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2OctPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hex2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Hex2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hex2Oct - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2OctPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hex2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Hex2OctPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Hex2OctRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Hex2OctRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Hex2OctRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java deleted file mode 100644 index c2f004f175f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup; - -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.serialization.UntypedNode; -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 HlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HlookupPostRequestBody} and sets the default values. - */ - public HlookupPostRequestBody() { - 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 HlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HlookupPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rowIndexNum", (n) -> { this.setRowIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the rowIndexNum property value. The rowIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRowIndexNum() { - return this.backingStore.get("rowIndexNum"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * 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("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("rowIndexNum", this.getRowIndexNum()); - writer.writeObjectValue("tableArray", this.getTableArray()); - 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 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 lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the rowIndexNum property value. The rowIndexNum property - * @param value Value to set for the rowIndexNum property. - */ - public void setRowIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rowIndexNum", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java deleted file mode 100644 index 57ccfec90b3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hlookup method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HlookupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HlookupRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HlookupRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hlookup", pathParameters); - } - /** - * Instantiates a new {@link HlookupRequestBuilder} 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 HlookupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hlookup", rawUrl); - } - /** - * Invoke action hlookup - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HlookupPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HlookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hlookup - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HlookupPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HlookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 HlookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HlookupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HlookupRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java deleted file mode 100644 index d38b0a9c8a2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour; - -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.serialization.UntypedNode; -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 HourPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HourPostRequestBody} and sets the default values. - */ - public HourPostRequestBody() { - 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 HourPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HourPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HourPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java deleted file mode 100644 index 2204ecf46d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hour method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HourRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HourRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HourRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hour", pathParameters); - } - /** - * Instantiates a new {@link HourRequestBuilder} 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 HourRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hour", rawUrl); - } - /** - * Invoke action hour - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HourPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hour - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HourPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hour - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HourPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hour - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HourPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 HourRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HourRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HourRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java deleted file mode 100644 index f8d2e905dca..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink; - -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.serialization.UntypedNode; -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 HyperlinkPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HyperlinkPostRequestBody} and sets the default values. - */ - public HyperlinkPostRequestBody() { - 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 HyperlinkPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HyperlinkPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HyperlinkPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("friendlyName", (n) -> { this.setFriendlyName(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("linkLocation", (n) -> { this.setLinkLocation(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the friendlyName property value. The friendlyName property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFriendlyName() { - return this.backingStore.get("friendlyName"); - } - /** - * Gets the linkLocation property value. The linkLocation property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLinkLocation() { - return this.backingStore.get("linkLocation"); - } - /** - * 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("friendlyName", this.getFriendlyName()); - writer.writeObjectValue("linkLocation", this.getLinkLocation()); - 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 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 friendlyName property value. The friendlyName property - * @param value Value to set for the friendlyName property. - */ - public void setFriendlyName(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("friendlyName", value); - } - /** - * Sets the linkLocation property value. The linkLocation property - * @param value Value to set for the linkLocation property. - */ - public void setLinkLocation(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("linkLocation", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java deleted file mode 100644 index 1305cfa4739..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hyperlink method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HyperlinkRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HyperlinkRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HyperlinkRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hyperlink", pathParameters); - } - /** - * Instantiates a new {@link HyperlinkRequestBuilder} 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 HyperlinkRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hyperlink", rawUrl); - } - /** - * Invoke action hyperlink - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HyperlinkPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hyperlink - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HyperlinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hyperlink - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HyperlinkPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hyperlink - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HyperlinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 HyperlinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HyperlinkRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HyperlinkRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java deleted file mode 100644 index 5ac0ff03631..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist; - -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.serialization.UntypedNode; -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 HypGeomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HypGeomDistPostRequestBody} and sets the default values. - */ - public HypGeomDistPostRequestBody() { - 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 HypGeomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HypGeomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HypGeomDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberPop", (n) -> { this.setNumberPop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberSample", (n) -> { this.setNumberSample(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("populationS", (n) -> { this.setPopulationS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sampleS", (n) -> { this.setSampleS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberPop property value. The numberPop property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberPop() { - return this.backingStore.get("numberPop"); - } - /** - * Gets the numberSample property value. The numberSample property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberSample() { - return this.backingStore.get("numberSample"); - } - /** - * Gets the populationS property value. The populationS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPopulationS() { - return this.backingStore.get("populationS"); - } - /** - * Gets the sampleS property value. The sampleS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSampleS() { - return this.backingStore.get("sampleS"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("numberPop", this.getNumberPop()); - writer.writeObjectValue("numberSample", this.getNumberSample()); - writer.writeObjectValue("populationS", this.getPopulationS()); - writer.writeObjectValue("sampleS", this.getSampleS()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberPop property value. The numberPop property - * @param value Value to set for the numberPop property. - */ - public void setNumberPop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberPop", value); - } - /** - * Sets the numberSample property value. The numberSample property - * @param value Value to set for the numberSample property. - */ - public void setNumberSample(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberSample", value); - } - /** - * Sets the populationS property value. The populationS property - * @param value Value to set for the populationS property. - */ - public void setPopulationS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("populationS", value); - } - /** - * Sets the sampleS property value. The sampleS property - * @param value Value to set for the sampleS property. - */ - public void setSampleS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sampleS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java deleted file mode 100644 index 012f29a2aa2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 hypGeom_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HypGeomDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HypGeomDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HypGeomDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hypGeom_Dist", pathParameters); - } - /** - * Instantiates a new {@link HypGeomDistRequestBuilder} 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 HypGeomDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hypGeom_Dist", rawUrl); - } - /** - * Invoke action hypGeom_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HypGeomDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action hypGeom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final HypGeomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action hypGeom_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HypGeomDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action hypGeom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final HypGeomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 HypGeomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HypGeomDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HypGeomDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java deleted file mode 100644 index 86a3f7356c3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped; - -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.serialization.UntypedNode; -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 IfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IfPostRequestBody} and sets the default values. - */ - public IfPostRequestBody() { - 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 IfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IfPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("logicalTest", (n) -> { this.setLogicalTest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfFalse", (n) -> { this.setValueIfFalse(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfTrue", (n) -> { this.setValueIfTrue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logicalTest property value. The logicalTest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogicalTest() { - return this.backingStore.get("logicalTest"); - } - /** - * Gets the valueIfFalse property value. The valueIfFalse property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfFalse() { - return this.backingStore.get("valueIfFalse"); - } - /** - * Gets the valueIfTrue property value. The valueIfTrue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfTrue() { - return this.backingStore.get("valueIfTrue"); - } - /** - * 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("logicalTest", this.getLogicalTest()); - writer.writeObjectValue("valueIfFalse", this.getValueIfFalse()); - writer.writeObjectValue("valueIfTrue", this.getValueIfTrue()); - 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 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 logicalTest property value. The logicalTest property - * @param value Value to set for the logicalTest property. - */ - public void setLogicalTest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logicalTest", value); - } - /** - * Sets the valueIfFalse property value. The valueIfFalse property - * @param value Value to set for the valueIfFalse property. - */ - public void setValueIfFalse(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfFalse", value); - } - /** - * Sets the valueIfTrue property value. The valueIfTrue property - * @param value Value to set for the valueIfTrue property. - */ - public void setValueIfTrue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfTrue", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java deleted file mode 100644 index fbb726a9ad7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 if method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IfRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IfRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/if", pathParameters); - } - /** - * Instantiates a new {@link IfRequestBuilder} 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 IfRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/if", rawUrl); - } - /** - * Invoke action if - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IfPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action if - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action if - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IfPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action if - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IfRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IfRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java deleted file mode 100644 index b05349407c7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs; - -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.serialization.UntypedNode; -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 ImAbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImAbsPostRequestBody} and sets the default values. - */ - public ImAbsPostRequestBody() { - 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 ImAbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImAbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImAbsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java deleted file mode 100644 index 59b58f53e20..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imAbs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImAbsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImAbsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImAbsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imAbs", pathParameters); - } - /** - * Instantiates a new {@link ImAbsRequestBuilder} 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 ImAbsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imAbs", rawUrl); - } - /** - * Invoke action imAbs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImAbsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imAbs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImAbsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imAbs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImAbsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imAbs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImAbsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImAbsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImAbsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImAbsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java deleted file mode 100644 index c4ce2562fba..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary; - -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.serialization.UntypedNode; -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 ImaginaryPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImaginaryPostRequestBody} and sets the default values. - */ - public ImaginaryPostRequestBody() { - 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 ImaginaryPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImaginaryPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImaginaryPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java deleted file mode 100644 index 8b338cea8e9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imaginary method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImaginaryRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImaginaryRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImaginaryRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imaginary", pathParameters); - } - /** - * Instantiates a new {@link ImaginaryRequestBuilder} 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 ImaginaryRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imaginary", rawUrl); - } - /** - * Invoke action imaginary - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImaginaryPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imaginary - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImaginaryPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imaginary - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImaginaryPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imaginary - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImaginaryPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImaginaryRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImaginaryRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImaginaryRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java deleted file mode 100644 index 8c11c1d2ebf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument; - -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.serialization.UntypedNode; -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 ImArgumentPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImArgumentPostRequestBody} and sets the default values. - */ - public ImArgumentPostRequestBody() { - 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 ImArgumentPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImArgumentPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImArgumentPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java deleted file mode 100644 index 0d8d02675ff..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imArgument method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImArgumentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImArgumentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImArgumentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imArgument", pathParameters); - } - /** - * Instantiates a new {@link ImArgumentRequestBuilder} 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 ImArgumentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imArgument", rawUrl); - } - /** - * Invoke action imArgument - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImArgumentPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imArgument - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImArgumentPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imArgument - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImArgumentPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imArgument - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImArgumentPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImArgumentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImArgumentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImArgumentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java deleted file mode 100644 index c4b97b8efdc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate; - -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.serialization.UntypedNode; -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 ImConjugatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImConjugatePostRequestBody} and sets the default values. - */ - public ImConjugatePostRequestBody() { - 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 ImConjugatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImConjugatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImConjugatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java deleted file mode 100644 index de78709202d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imConjugate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImConjugateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImConjugateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImConjugateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imConjugate", pathParameters); - } - /** - * Instantiates a new {@link ImConjugateRequestBuilder} 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 ImConjugateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imConjugate", rawUrl); - } - /** - * Invoke action imConjugate - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImConjugatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imConjugate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImConjugatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imConjugate - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImConjugatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imConjugate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImConjugatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImConjugateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImConjugateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImConjugateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java deleted file mode 100644 index 5e0ab69e453..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos; - -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.serialization.UntypedNode; -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 ImCosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCosPostRequestBody} and sets the default values. - */ - public ImCosPostRequestBody() { - 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 ImCosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCosPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java deleted file mode 100644 index a048c5c7564..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imCos method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImCosRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImCosRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCos", pathParameters); - } - /** - * Instantiates a new {@link ImCosRequestBuilder} 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 ImCosRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCos", rawUrl); - } - /** - * Invoke action imCos - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCosPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imCos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imCos - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCosPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imCos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCosPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImCosRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCosRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImCosRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java deleted file mode 100644 index e778616a8b7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh; - -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.serialization.UntypedNode; -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 ImCoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCoshPostRequestBody} and sets the default values. - */ - public ImCoshPostRequestBody() { - 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 ImCoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCoshPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java deleted file mode 100644 index 67fe1a05e17..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imCosh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCoshRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImCoshRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImCoshRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCosh", pathParameters); - } - /** - * Instantiates a new {@link ImCoshRequestBuilder} 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 ImCoshRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCosh", rawUrl); - } - /** - * Invoke action imCosh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCoshPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imCosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imCosh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCoshPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imCosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCoshPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImCoshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCoshRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImCoshRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java deleted file mode 100644 index 2170d882eb6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot; - -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.serialization.UntypedNode; -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 ImCotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCotPostRequestBody} and sets the default values. - */ - public ImCotPostRequestBody() { - 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 ImCotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCotPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java deleted file mode 100644 index d1999746290..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imCot method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCotRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImCotRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImCotRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCot", pathParameters); - } - /** - * Instantiates a new {@link ImCotRequestBuilder} 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 ImCotRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCot", rawUrl); - } - /** - * Invoke action imCot - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCotPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imCot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imCot - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCotPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imCot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImCotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCotRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImCotRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java deleted file mode 100644 index f24b4af6333..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc; - -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.serialization.UntypedNode; -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 ImCscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCscPostRequestBody} and sets the default values. - */ - public ImCscPostRequestBody() { - 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 ImCscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java deleted file mode 100644 index 248d3a9f998..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imCsc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImCscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImCscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsc", pathParameters); - } - /** - * Instantiates a new {@link ImCscRequestBuilder} 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 ImCscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsc", rawUrl); - } - /** - * Invoke action imCsc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imCsc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imCsc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imCsc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImCscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImCscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java deleted file mode 100644 index 9645f6d0fc7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch; - -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.serialization.UntypedNode; -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 ImCschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCschPostRequestBody} and sets the default values. - */ - public ImCschPostRequestBody() { - 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 ImCschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCschPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java deleted file mode 100644 index d2f26174ef2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imCsch method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCschRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImCschRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImCschRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsch", pathParameters); - } - /** - * Instantiates a new {@link ImCschRequestBuilder} 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 ImCschRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsch", rawUrl); - } - /** - * Invoke action imCsch - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCschPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imCsch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImCschPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imCsch - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCschPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imCsch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImCschPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImCschRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImCschRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImCschRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java deleted file mode 100644 index 637c0e7edd0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv; - -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.serialization.UntypedNode; -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 ImDivPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImDivPostRequestBody} and sets the default values. - */ - public ImDivPostRequestBody() { - 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 ImDivPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImDivPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImDivPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * 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("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - 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 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 inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java deleted file mode 100644 index 9ef72308f23..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imDiv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImDivRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImDivRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImDivRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imDiv", pathParameters); - } - /** - * Instantiates a new {@link ImDivRequestBuilder} 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 ImDivRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imDiv", rawUrl); - } - /** - * Invoke action imDiv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImDivPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imDiv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImDivPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imDiv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImDivPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imDiv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImDivPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImDivRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImDivRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImDivRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java deleted file mode 100644 index 6cf9e50f10a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp; - -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.serialization.UntypedNode; -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 ImExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImExpPostRequestBody} and sets the default values. - */ - public ImExpPostRequestBody() { - 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 ImExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImExpPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java deleted file mode 100644 index 7a3a4fc34d5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imExp method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImExpRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImExpRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImExpRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imExp", pathParameters); - } - /** - * Instantiates a new {@link ImExpRequestBuilder} 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 ImExpRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imExp", rawUrl); - } - /** - * Invoke action imExp - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImExpPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imExp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImExpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imExp - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImExpPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imExp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImExpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImExpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImExpRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImExpRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java deleted file mode 100644 index 1d3802000e5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln; - -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.serialization.UntypedNode; -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 ImLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLnPostRequestBody} and sets the default values. - */ - public ImLnPostRequestBody() { - 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 ImLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLnPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java deleted file mode 100644 index 25dd4ecb117..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imLn method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImLnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImLnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLn", pathParameters); - } - /** - * Instantiates a new {@link ImLnRequestBuilder} 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 ImLnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLn", rawUrl); - } - /** - * Invoke action imLn - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLnPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imLn - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLnPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImLnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImLnRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java deleted file mode 100644 index 32cc71ed4aa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10; - -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.serialization.UntypedNode; -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 ImLog10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog10PostRequestBody} and sets the default values. - */ - public ImLog10PostRequestBody() { - 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 ImLog10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog10PostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java deleted file mode 100644 index f10c5690a0a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imLog10 method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog10RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImLog10RequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImLog10RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog10", pathParameters); - } - /** - * Instantiates a new {@link ImLog10RequestBuilder} 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 ImLog10RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog10", rawUrl); - } - /** - * Invoke action imLog10 - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLog10PostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imLog10 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLog10PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imLog10 - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLog10PostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imLog10 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLog10PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImLog10RequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLog10RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImLog10RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java deleted file mode 100644 index b7c4f7db95f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2; - -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.serialization.UntypedNode; -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 ImLog2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog2PostRequestBody} and sets the default values. - */ - public ImLog2PostRequestBody() { - 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 ImLog2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog2PostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java deleted file mode 100644 index 4bb51fd5e63..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imLog2 method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog2RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImLog2RequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImLog2RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog2", pathParameters); - } - /** - * Instantiates a new {@link ImLog2RequestBuilder} 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 ImLog2RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog2", rawUrl); - } - /** - * Invoke action imLog2 - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLog2PostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imLog2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImLog2PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imLog2 - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLog2PostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imLog2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImLog2PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImLog2RequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImLog2RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImLog2RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java deleted file mode 100644 index f0ab12429f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower; - -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.serialization.UntypedNode; -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 ImPowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImPowerPostRequestBody} and sets the default values. - */ - public ImPowerPostRequestBody() { - 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 ImPowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImPowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImPowerPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("inumber", this.getInumber()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java deleted file mode 100644 index 9ecefbfc88e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imPower method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImPowerRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImPowerRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImPowerRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imPower", pathParameters); - } - /** - * Instantiates a new {@link ImPowerRequestBuilder} 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 ImPowerRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imPower", rawUrl); - } - /** - * Invoke action imPower - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImPowerPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imPower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImPowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imPower - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImPowerPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imPower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImPowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImPowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImPowerRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImPowerRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java deleted file mode 100644 index 4904378ae4d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct; - -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.serialization.UntypedNode; -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 ImProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImProductPostRequestBody} and sets the default values. - */ - public ImProductPostRequestBody() { - 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 ImProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImProductPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java deleted file mode 100644 index 2bfe153a589..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imProduct method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImProductRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImProductRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImProductRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imProduct", pathParameters); - } - /** - * Instantiates a new {@link ImProductRequestBuilder} 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 ImProductRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imProduct", rawUrl); - } - /** - * Invoke action imProduct - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImProductPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imProduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImProductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imProduct - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImProductPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imProduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImProductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImProductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImProductRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImProductRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java deleted file mode 100644 index 2feff2e0878..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal; - -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.serialization.UntypedNode; -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 ImRealPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImRealPostRequestBody} and sets the default values. - */ - public ImRealPostRequestBody() { - 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 ImRealPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImRealPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImRealPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java deleted file mode 100644 index dd120e4e5c1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imReal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImRealRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImRealRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImRealRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imReal", pathParameters); - } - /** - * Instantiates a new {@link ImRealRequestBuilder} 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 ImRealRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imReal", rawUrl); - } - /** - * Invoke action imReal - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImRealPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imReal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImRealPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imReal - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImRealPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imReal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImRealPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImRealRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImRealRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImRealRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java deleted file mode 100644 index efb1c13dc35..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec; - -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.serialization.UntypedNode; -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 ImSecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSecPostRequestBody} and sets the default values. - */ - public ImSecPostRequestBody() { - 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 ImSecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSecPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java deleted file mode 100644 index 2005c18a306..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSec method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSecRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSecRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSec", pathParameters); - } - /** - * Instantiates a new {@link ImSecRequestBuilder} 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 ImSecRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSec", rawUrl); - } - /** - * Invoke action imSec - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSecPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSec - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSecPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSecRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSecRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java deleted file mode 100644 index 73bfa418638..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech; - -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.serialization.UntypedNode; -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 ImSechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSechPostRequestBody} and sets the default values. - */ - public ImSechPostRequestBody() { - 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 ImSechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSechPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java deleted file mode 100644 index 5cf3bcac566..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSech method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSechRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSechRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSechRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSech", pathParameters); - } - /** - * Instantiates a new {@link ImSechRequestBuilder} 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 ImSechRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSech", rawUrl); - } - /** - * Invoke action imSech - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSechPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSechPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSech - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSechPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSechPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSechRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSechRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSechRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java deleted file mode 100644 index 2432c558c7b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin; - -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.serialization.UntypedNode; -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 ImSinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinPostRequestBody} and sets the default values. - */ - public ImSinPostRequestBody() { - 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 ImSinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java deleted file mode 100644 index 14599cc9ab2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSin", pathParameters); - } - /** - * Instantiates a new {@link ImSinRequestBuilder} 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 ImSinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSin", rawUrl); - } - /** - * Invoke action imSin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java deleted file mode 100644 index d08a89d7a1b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh; - -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.serialization.UntypedNode; -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 ImSinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinhPostRequestBody} and sets the default values. - */ - public ImSinhPostRequestBody() { - 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 ImSinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinhPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java deleted file mode 100644 index 3baaa3d4c7a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSinh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSinhRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSinhRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSinh", pathParameters); - } - /** - * Instantiates a new {@link ImSinhRequestBuilder} 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 ImSinhRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSinh", rawUrl); - } - /** - * Invoke action imSinh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSinhPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSinh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSinhPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSinhRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSinhRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java deleted file mode 100644 index 347f993735e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt; - -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.serialization.UntypedNode; -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 ImSqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSqrtPostRequestBody} and sets the default values. - */ - public ImSqrtPostRequestBody() { - 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 ImSqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSqrtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java deleted file mode 100644 index fa6984630d8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSqrt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSqrtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSqrtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSqrtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSqrt", pathParameters); - } - /** - * Instantiates a new {@link ImSqrtRequestBuilder} 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 ImSqrtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSqrt", rawUrl); - } - /** - * Invoke action imSqrt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSqrtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSqrtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSqrt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSqrtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSqrtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSqrtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSqrtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSqrtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java deleted file mode 100644 index 0205dc7d86f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub; - -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.serialization.UntypedNode; -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 ImSubPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSubPostRequestBody} and sets the default values. - */ - public ImSubPostRequestBody() { - 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 ImSubPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSubPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSubPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * 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("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - 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 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 inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java deleted file mode 100644 index 1eef0c4d757..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSub method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSubRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSubRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSub", pathParameters); - } - /** - * Instantiates a new {@link ImSubRequestBuilder} 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 ImSubRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSub", rawUrl); - } - /** - * Invoke action imSub - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSubPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSub - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSubPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSub - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSubPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSub - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSubPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSubRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSubRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSubRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java deleted file mode 100644 index 12d4a91e260..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum; - -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.serialization.UntypedNode; -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 ImSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSumPostRequestBody} and sets the default values. - */ - public ImSumPostRequestBody() { - 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 ImSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java deleted file mode 100644 index f70429be5a9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imSum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImSumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImSumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSum", pathParameters); - } - /** - * Instantiates a new {@link ImSumRequestBuilder} 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 ImSumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSum", rawUrl); - } - /** - * Invoke action imSum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imSum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImSumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imSum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imSum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImSumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImSumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImSumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImSumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java deleted file mode 100644 index f0e464b63a0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan; - -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.serialization.UntypedNode; -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 ImTanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImTanPostRequestBody} and sets the default values. - */ - public ImTanPostRequestBody() { - 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 ImTanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImTanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImTanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * 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("inumber", this.getInumber()); - 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 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 inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java deleted file mode 100644 index 0feb76c55f1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 imTan method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImTanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImTanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImTanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imTan", pathParameters); - } - /** - * Instantiates a new {@link ImTanRequestBuilder} 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 ImTanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imTan", rawUrl); - } - /** - * Invoke action imTan - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImTanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action imTan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ImTanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action imTan - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImTanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action imTan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ImTanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ImTanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImTanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImTanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java deleted file mode 100644 index b83c62d3cb0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped; - -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.serialization.UntypedNode; -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 IntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntPostRequestBody} and sets the default values. - */ - public IntPostRequestBody() { - 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 IntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java deleted file mode 100644 index 98d539887c7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 int method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IntRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IntRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/int", pathParameters); - } - /** - * Instantiates a new {@link IntRequestBuilder} 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 IntRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/int", rawUrl); - } - /** - * Invoke action int - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IntPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action int - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IntPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action int - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IntPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action int - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IntPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IntRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IntRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IntRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java deleted file mode 100644 index 7e7672eb32a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate; - -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.serialization.UntypedNode; -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 IntRatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntRatePostRequestBody} and sets the default values. - */ - public IntRatePostRequestBody() { - 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 IntRatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntRatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntRatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java deleted file mode 100644 index bbdab2557a4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 intRate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntRateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IntRateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IntRateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/intRate", pathParameters); - } - /** - * Instantiates a new {@link IntRateRequestBuilder} 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 IntRateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/intRate", rawUrl); - } - /** - * Invoke action intRate - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IntRatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action intRate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IntRatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action intRate - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IntRatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action intRate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IntRatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IntRateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IntRateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IntRateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java deleted file mode 100644 index 4da18b23608..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt; - -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.serialization.UntypedNode; -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 IpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IpmtPostRequestBody} and sets the default values. - */ - public IpmtPostRequestBody() { - 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 IpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IpmtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java deleted file mode 100644 index b8f323ad3ba..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ipmt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IpmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IpmtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IpmtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ipmt", pathParameters); - } - /** - * Instantiates a new {@link IpmtRequestBuilder} 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 IpmtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ipmt", rawUrl); - } - /** - * Invoke action ipmt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IpmtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ipmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IpmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ipmt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IpmtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ipmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IpmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IpmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IpmtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IpmtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java deleted file mode 100644 index 479bf5e2de0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr; - -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.serialization.UntypedNode; -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 IrrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IrrPostRequestBody} and sets the default values. - */ - public IrrPostRequestBody() { - 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 IrrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IrrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IrrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - 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 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 guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java deleted file mode 100644 index fd4dba96904..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 irr method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IrrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IrrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IrrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/irr", pathParameters); - } - /** - * Instantiates a new {@link IrrRequestBuilder} 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 IrrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/irr", rawUrl); - } - /** - * Invoke action irr - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IrrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action irr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IrrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action irr - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IrrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action irr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IrrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IrrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IrrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IrrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java deleted file mode 100644 index 6481f398836..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr; - -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.serialization.UntypedNode; -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 IsErrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrPostRequestBody} and sets the default values. - */ - public IsErrPostRequestBody() { - 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 IsErrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java deleted file mode 100644 index bdb555cdce0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isErr method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsErrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsErrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isErr", pathParameters); - } - /** - * Instantiates a new {@link IsErrRequestBuilder} 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 IsErrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isErr", rawUrl); - } - /** - * Invoke action isErr - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsErrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isErr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsErrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isErr - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsErrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isErr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsErrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsErrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsErrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsErrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java deleted file mode 100644 index 35ea844931c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror; - -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.serialization.UntypedNode; -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 IsErrorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrorPostRequestBody} and sets the default values. - */ - public IsErrorPostRequestBody() { - 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 IsErrorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java deleted file mode 100644 index 2140d334147..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isError method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsErrorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsErrorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isError", pathParameters); - } - /** - * Instantiates a new {@link IsErrorRequestBuilder} 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 IsErrorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isError", rawUrl); - } - /** - * Invoke action isError - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsErrorPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isError - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsErrorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isError - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsErrorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isError - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsErrorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsErrorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsErrorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsErrorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java deleted file mode 100644 index 8835ef6d761..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven; - -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.serialization.UntypedNode; -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 IsEvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsEvenPostRequestBody} and sets the default values. - */ - public IsEvenPostRequestBody() { - 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 IsEvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsEvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsEvenPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java deleted file mode 100644 index cccb892755c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isEven method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsEvenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsEvenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsEvenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isEven", pathParameters); - } - /** - * Instantiates a new {@link IsEvenRequestBuilder} 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 IsEvenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isEven", rawUrl); - } - /** - * Invoke action isEven - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsEvenPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isEven - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsEvenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isEven - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsEvenPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isEven - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsEvenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsEvenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsEvenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsEvenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java deleted file mode 100644 index 10596a28d50..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula; - -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.serialization.UntypedNode; -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 IsFormulaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsFormulaPostRequestBody} and sets the default values. - */ - public IsFormulaPostRequestBody() { - 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 IsFormulaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsFormulaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsFormulaPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * 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("reference", this.getReference()); - 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 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 reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java deleted file mode 100644 index 250a08dd854..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isFormula method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsFormulaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsFormulaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsFormulaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isFormula", pathParameters); - } - /** - * Instantiates a new {@link IsFormulaRequestBuilder} 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 IsFormulaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isFormula", rawUrl); - } - /** - * Invoke action isFormula - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsFormulaPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isFormula - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsFormulaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isFormula - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsFormulaPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isFormula - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsFormulaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsFormulaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsFormulaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsFormulaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java deleted file mode 100644 index f35273f8122..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical; - -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.serialization.UntypedNode; -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 IsLogicalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsLogicalPostRequestBody} and sets the default values. - */ - public IsLogicalPostRequestBody() { - 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 IsLogicalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsLogicalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsLogicalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java deleted file mode 100644 index 8460bc5c03d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isLogical method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsLogicalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsLogicalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsLogicalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isLogical", pathParameters); - } - /** - * Instantiates a new {@link IsLogicalRequestBuilder} 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 IsLogicalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isLogical", rawUrl); - } - /** - * Invoke action isLogical - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsLogicalPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isLogical - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsLogicalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isLogical - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsLogicalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isLogical - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsLogicalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsLogicalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsLogicalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsLogicalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java deleted file mode 100644 index 9f4133f66af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna; - -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.serialization.UntypedNode; -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 IsNAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNAPostRequestBody} and sets the default values. - */ - public IsNAPostRequestBody() { - 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 IsNAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java deleted file mode 100644 index dd7cb95f128..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isNA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsNARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsNARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNA", pathParameters); - } - /** - * Instantiates a new {@link IsNARequestBuilder} 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 IsNARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNA", rawUrl); - } - /** - * Invoke action isNA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isNA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isNA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isNA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsNARequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsNARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java deleted file mode 100644 index 9cbd3457bd5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext; - -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.serialization.UntypedNode; -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 IsNonTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNonTextPostRequestBody} and sets the default values. - */ - public IsNonTextPostRequestBody() { - 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 IsNonTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNonTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNonTextPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java deleted file mode 100644 index 07d41d4d274..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isNonText method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNonTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsNonTextRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsNonTextRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNonText", pathParameters); - } - /** - * Instantiates a new {@link IsNonTextRequestBuilder} 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 IsNonTextRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNonText", rawUrl); - } - /** - * Invoke action isNonText - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNonTextPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isNonText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNonTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isNonText - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNonTextPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isNonText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNonTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsNonTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNonTextRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsNonTextRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java deleted file mode 100644 index 72667d20106..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber; - -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.serialization.UntypedNode; -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 IsNumberPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNumberPostRequestBody} and sets the default values. - */ - public IsNumberPostRequestBody() { - 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 IsNumberPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNumberPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNumberPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java deleted file mode 100644 index da25e0d72e1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isNumber method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNumberRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsNumberRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsNumberRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNumber", pathParameters); - } - /** - * Instantiates a new {@link IsNumberRequestBuilder} 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 IsNumberRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNumber", rawUrl); - } - /** - * Invoke action isNumber - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNumberPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isNumber - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsNumberPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isNumber - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNumberPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isNumber - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsNumberPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsNumberRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsNumberRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsNumberRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java deleted file mode 100644 index b33cb5373ad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling; - -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.serialization.UntypedNode; -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 IsoCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoCeilingPostRequestBody} and sets the default values. - */ - public IsoCeilingPostRequestBody() { - 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 IsoCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoCeilingPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java deleted file mode 100644 index 11419500c63..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 iso_Ceiling method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoCeilingRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsoCeilingRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsoCeilingRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/iso_Ceiling", pathParameters); - } - /** - * Instantiates a new {@link IsoCeilingRequestBuilder} 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 IsoCeilingRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/iso_Ceiling", rawUrl); - } - /** - * Invoke action iso_Ceiling - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsoCeilingPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action iso_Ceiling - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsoCeilingPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action iso_Ceiling - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsoCeilingPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action iso_Ceiling - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsoCeilingPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsoCeilingRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsoCeilingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsoCeilingRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java deleted file mode 100644 index ec71f273d49..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd; - -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.serialization.UntypedNode; -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 IsOddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsOddPostRequestBody} and sets the default values. - */ - public IsOddPostRequestBody() { - 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 IsOddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsOddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsOddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java deleted file mode 100644 index 6febe3d4bfa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isOdd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsOddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsOddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsOddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isOdd", pathParameters); - } - /** - * Instantiates a new {@link IsOddRequestBuilder} 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 IsOddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isOdd", rawUrl); - } - /** - * Invoke action isOdd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsOddPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isOdd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsOddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isOdd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsOddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isOdd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsOddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsOddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsOddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsOddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java deleted file mode 100644 index 27af75686b1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum; - -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.serialization.UntypedNode; -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 IsoWeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoWeekNumPostRequestBody} and sets the default values. - */ - public IsoWeekNumPostRequestBody() { - 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 IsoWeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoWeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoWeekNumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the date property value. The date property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDate() { - return this.backingStore.get("date"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("date", (n) -> { this.setDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("date", this.getDate()); - 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 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 date property value. The date property - * @param value Value to set for the date property. - */ - public void setDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("date", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java deleted file mode 100644 index 24cdaa36eab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isoWeekNum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoWeekNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsoWeekNumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsoWeekNumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isoWeekNum", pathParameters); - } - /** - * Instantiates a new {@link IsoWeekNumRequestBuilder} 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 IsoWeekNumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isoWeekNum", rawUrl); - } - /** - * Invoke action isoWeekNum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsoWeekNumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isoWeekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsoWeekNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isoWeekNum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsoWeekNumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isoWeekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsoWeekNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsoWeekNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsoWeekNumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsoWeekNumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java deleted file mode 100644 index d057ad690c1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt; - -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.serialization.UntypedNode; -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 IspmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IspmtPostRequestBody} and sets the default values. - */ - public IspmtPostRequestBody() { - 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 IspmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IspmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IspmtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * 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("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - 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 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 nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java deleted file mode 100644 index 333290de81b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ispmt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IspmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IspmtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IspmtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ispmt", pathParameters); - } - /** - * Instantiates a new {@link IspmtRequestBuilder} 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 IspmtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ispmt", rawUrl); - } - /** - * Invoke action ispmt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IspmtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ispmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IspmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ispmt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IspmtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ispmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IspmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IspmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IspmtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IspmtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java deleted file mode 100644 index 40e26ed3cdf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref; - -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.serialization.UntypedNode; -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 IsrefPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsrefPostRequestBody} and sets the default values. - */ - public IsrefPostRequestBody() { - 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 IsrefPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsrefPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsrefPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java deleted file mode 100644 index 5ed8527ee10..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isref method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsrefRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsrefRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsrefRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isref", pathParameters); - } - /** - * Instantiates a new {@link IsrefRequestBuilder} 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 IsrefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isref", rawUrl); - } - /** - * Invoke action isref - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsrefPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isref - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsrefPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isref - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsrefPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isref - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsrefPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsrefRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsrefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsrefRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java deleted file mode 100644 index 7f0f1df7d32..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext; - -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.serialization.UntypedNode; -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 IsTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsTextPostRequestBody} and sets the default values. - */ - public IsTextPostRequestBody() { - 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 IsTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsTextPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java deleted file mode 100644 index 46fc5583a60..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 isText method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsTextRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsTextRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isText", pathParameters); - } - /** - * Instantiates a new {@link IsTextRequestBuilder} 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 IsTextRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isText", rawUrl); - } - /** - * Invoke action isText - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsTextPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action isText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final IsTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action isText - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsTextPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action isText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final IsTextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 IsTextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsTextRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsTextRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java deleted file mode 100644 index 4261cb61c11..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt; - -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.serialization.UntypedNode; -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 KurtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link KurtPostRequestBody} and sets the default values. - */ - public KurtPostRequestBody() { - 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 KurtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static KurtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new KurtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java deleted file mode 100644 index 6a4583f1d92..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 kurt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class KurtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link KurtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public KurtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/kurt", pathParameters); - } - /** - * Instantiates a new {@link KurtRequestBuilder} 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 KurtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/kurt", rawUrl); - } - /** - * Invoke action kurt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final KurtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action kurt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final KurtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action kurt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final KurtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action kurt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final KurtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 KurtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public KurtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new KurtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java deleted file mode 100644 index 72bc1ae4632..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.large; - -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.serialization.UntypedNode; -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 LargePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LargePostRequestBody} and sets the default values. - */ - public LargePostRequestBody() { - 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 LargePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LargePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LargePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java deleted file mode 100644 index c9571d14889..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.large; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 large method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LargeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LargeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LargeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/large", pathParameters); - } - /** - * Instantiates a new {@link LargeRequestBuilder} 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 LargeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/large", rawUrl); - } - /** - * Invoke action large - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LargePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action large - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LargePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action large - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LargePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action large - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LargePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LargeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LargeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LargeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java deleted file mode 100644 index 74b04c881e0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm; - -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.serialization.UntypedNode; -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 LcmPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LcmPostRequestBody} and sets the default values. - */ - public LcmPostRequestBody() { - 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 LcmPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LcmPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LcmPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java deleted file mode 100644 index 970f023b6bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 lcm method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LcmRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LcmRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LcmRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lcm", pathParameters); - } - /** - * Instantiates a new {@link LcmRequestBuilder} 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 LcmRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lcm", rawUrl); - } - /** - * Invoke action lcm - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LcmPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action lcm - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LcmPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action lcm - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LcmPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action lcm - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LcmPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LcmRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LcmRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LcmRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java deleted file mode 100644 index 90199cbfb6c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.left; - -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.serialization.UntypedNode; -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 LeftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftPostRequestBody} and sets the default values. - */ - public LeftPostRequestBody() { - 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 LeftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - 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 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 numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java deleted file mode 100644 index 3c39a4b597e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.left; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 left method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LeftRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LeftRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/left", pathParameters); - } - /** - * Instantiates a new {@link LeftRequestBuilder} 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 LeftRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/left", rawUrl); - } - /** - * Invoke action left - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LeftPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action left - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LeftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action left - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LeftPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action left - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LeftPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LeftRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LeftRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LeftRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java deleted file mode 100644 index 2f6e560b223..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb; - -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.serialization.UntypedNode; -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 LeftbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftbPostRequestBody} and sets the default values. - */ - public LeftbPostRequestBody() { - 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 LeftbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - 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 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 numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java deleted file mode 100644 index 0b47032fe10..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 leftb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LeftbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LeftbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/leftb", pathParameters); - } - /** - * Instantiates a new {@link LeftbRequestBuilder} 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 LeftbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/leftb", rawUrl); - } - /** - * Invoke action leftb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LeftbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action leftb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LeftbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action leftb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LeftbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action leftb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LeftbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LeftbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LeftbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LeftbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java deleted file mode 100644 index 6aa9f65b0e5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.len; - -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.serialization.UntypedNode; -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 LenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenPostRequestBody} and sets the default values. - */ - public LenPostRequestBody() { - 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 LenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java deleted file mode 100644 index 11898c70bc1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.len; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 len method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/len", pathParameters); - } - /** - * Instantiates a new {@link LenRequestBuilder} 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 LenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/len", rawUrl); - } - /** - * Invoke action len - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LenPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action len - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action len - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LenPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action len - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java deleted file mode 100644 index 8eb0103c919..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb; - -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.serialization.UntypedNode; -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 LenbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenbPostRequestBody} and sets the default values. - */ - public LenbPostRequestBody() { - 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 LenbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java deleted file mode 100644 index 2a0cf59ccd3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 lenb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LenbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LenbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lenb", pathParameters); - } - /** - * Instantiates a new {@link LenbRequestBuilder} 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 LenbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lenb", rawUrl); - } - /** - * Invoke action lenb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LenbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action lenb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LenbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action lenb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LenbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action lenb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LenbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LenbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LenbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LenbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java deleted file mode 100644 index 067119ab065..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln; - -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.serialization.UntypedNode; -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 LnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LnPostRequestBody} and sets the default values. - */ - public LnPostRequestBody() { - 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 LnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LnPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java deleted file mode 100644 index 25e9b9c6206..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ln method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ln", pathParameters); - } - /** - * Instantiates a new {@link LnRequestBuilder} 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 LnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ln", rawUrl); - } - /** - * Invoke action ln - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LnPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ln - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LnPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LnRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java deleted file mode 100644 index cfb26ef52f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log; - -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.serialization.UntypedNode; -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 LogPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogPostRequestBody} and sets the default values. - */ - public LogPostRequestBody() { - 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 LogPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the base property value. The base property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBase() { - return this.backingStore.get("base"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("base", (n) -> { this.setBase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("base", this.getBase()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 base property value. The base property - * @param value Value to set for the base property. - */ - public void setBase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("base", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java deleted file mode 100644 index 6d6f2ab70b3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 log method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LogRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LogRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log", pathParameters); - } - /** - * Instantiates a new {@link LogRequestBuilder} 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 LogRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log", rawUrl); - } - /** - * Invoke action log - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action log - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action log - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action log - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LogRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LogRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java deleted file mode 100644 index b9d675a1d76..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10; - -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.serialization.UntypedNode; -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 Log10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Log10PostRequestBody} and sets the default values. - */ - public Log10PostRequestBody() { - 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 Log10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Log10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Log10PostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java deleted file mode 100644 index 333a3ba012a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 log10 method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Log10RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Log10RequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Log10RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log10", pathParameters); - } - /** - * Instantiates a new {@link Log10RequestBuilder} 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 Log10RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log10", rawUrl); - } - /** - * Invoke action log10 - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Log10PostRequestBody body) { - return post(body, null); - } - /** - * Invoke action log10 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Log10PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action log10 - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Log10PostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action log10 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Log10PostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Log10RequestBuilder} - */ - @jakarta.annotation.Nonnull - public Log10RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Log10RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java deleted file mode 100644 index fab3a4e89d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist; - -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.serialization.UntypedNode; -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 LogNormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormDistPostRequestBody} and sets the default values. - */ - public LogNormDistPostRequestBody() { - 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 LogNormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java deleted file mode 100644 index 5deb870680f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 logNorm_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LogNormDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LogNormDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Dist", pathParameters); - } - /** - * Instantiates a new {@link LogNormDistRequestBuilder} 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 LogNormDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Dist", rawUrl); - } - /** - * Invoke action logNorm_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogNormDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action logNorm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogNormDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action logNorm_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogNormDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action logNorm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogNormDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LogNormDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogNormDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LogNormDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java deleted file mode 100644 index c01b4e0ad30..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv; - -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.serialization.UntypedNode; -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 LogNormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormInvPostRequestBody} and sets the default values. - */ - public LogNormInvPostRequestBody() { - 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 LogNormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * 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("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - 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 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 mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java deleted file mode 100644 index 323f022b9c3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 logNorm_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LogNormInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LogNormInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Inv", pathParameters); - } - /** - * Instantiates a new {@link LogNormInvRequestBuilder} 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 LogNormInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Inv", rawUrl); - } - /** - * Invoke action logNorm_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogNormInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action logNorm_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LogNormInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action logNorm_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogNormInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action logNorm_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LogNormInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LogNormInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LogNormInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LogNormInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java deleted file mode 100644 index 19c09f25bec..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup; - -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.serialization.UntypedNode; -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 LookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LookupPostRequestBody} and sets the default values. - */ - public LookupPostRequestBody() { - 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 LookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LookupPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupVector", (n) -> { this.setLookupVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("resultVector", (n) -> { this.setResultVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the lookupVector property value. The lookupVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupVector() { - return this.backingStore.get("lookupVector"); - } - /** - * Gets the resultVector property value. The resultVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getResultVector() { - return this.backingStore.get("resultVector"); - } - /** - * 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("lookupValue", this.getLookupValue()); - writer.writeObjectValue("lookupVector", this.getLookupVector()); - writer.writeObjectValue("resultVector", this.getResultVector()); - 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 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 lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the lookupVector property value. The lookupVector property - * @param value Value to set for the lookupVector property. - */ - public void setLookupVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupVector", value); - } - /** - * Sets the resultVector property value. The resultVector property - * @param value Value to set for the resultVector property. - */ - public void setResultVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("resultVector", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java deleted file mode 100644 index 9410682324d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 lookup method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LookupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LookupRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LookupRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lookup", pathParameters); - } - /** - * Instantiates a new {@link LookupRequestBuilder} 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 LookupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lookup", rawUrl); - } - /** - * Invoke action lookup - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LookupPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action lookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action lookup - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LookupPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action lookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LookupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LookupRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java deleted file mode 100644 index 8f8bdce1183..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower; - -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.serialization.UntypedNode; -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 LowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LowerPostRequestBody} and sets the default values. - */ - public LowerPostRequestBody() { - 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 LowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LowerPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java deleted file mode 100644 index 6dd89a00578..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 lower method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LowerRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LowerRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LowerRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lower", pathParameters); - } - /** - * Instantiates a new {@link LowerRequestBuilder} 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 LowerRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lower", rawUrl); - } - /** - * Invoke action lower - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LowerPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action lower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final LowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action lower - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LowerPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action lower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final LowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LowerRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LowerRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java deleted file mode 100644 index c84aa9cd62c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.match; - -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.serialization.UntypedNode; -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 MatchPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MatchPostRequestBody} and sets the default values. - */ - public MatchPostRequestBody() { - 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 MatchPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MatchPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MatchPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupArray", (n) -> { this.setLookupArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("matchType", (n) -> { this.setMatchType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupArray property value. The lookupArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupArray() { - return this.backingStore.get("lookupArray"); - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the matchType property value. The matchType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMatchType() { - return this.backingStore.get("matchType"); - } - /** - * 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("lookupArray", this.getLookupArray()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("matchType", this.getMatchType()); - 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 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 lookupArray property value. The lookupArray property - * @param value Value to set for the lookupArray property. - */ - public void setLookupArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupArray", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the matchType property value. The matchType property - * @param value Value to set for the matchType property. - */ - public void setMatchType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("matchType", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java deleted file mode 100644 index 587d170dae3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.match; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 match method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MatchRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MatchRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MatchRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/match", pathParameters); - } - /** - * Instantiates a new {@link MatchRequestBuilder} 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 MatchRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/match", rawUrl); - } - /** - * Invoke action match - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MatchPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action match - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MatchPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action match - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MatchPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action match - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MatchPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MatchRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MatchRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MatchRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java deleted file mode 100644 index d6d1723f75d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.max; - -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.serialization.UntypedNode; -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 MaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxPostRequestBody} and sets the default values. - */ - public MaxPostRequestBody() { - 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 MaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java deleted file mode 100644 index a1a52bfddcf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.max; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 max method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MaxRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MaxRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/max", pathParameters); - } - /** - * Instantiates a new {@link MaxRequestBuilder} 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 MaxRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/max", rawUrl); - } - /** - * Invoke action max - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MaxPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action max - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MaxPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action max - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MaxPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action max - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MaxPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MaxRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MaxRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MaxRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java deleted file mode 100644 index e1f66ed5f34..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa; - -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.serialization.UntypedNode; -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 MaxAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxAPostRequestBody} and sets the default values. - */ - public MaxAPostRequestBody() { - 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 MaxAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java deleted file mode 100644 index 083afd2e321..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 maxA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MaxARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MaxARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/maxA", pathParameters); - } - /** - * Instantiates a new {@link MaxARequestBuilder} 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 MaxARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/maxA", rawUrl); - } - /** - * Invoke action maxA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MaxAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action maxA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MaxAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action maxA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MaxAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action maxA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MaxAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MaxARequestBuilder} - */ - @jakarta.annotation.Nonnull - public MaxARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MaxARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java deleted file mode 100644 index 11df5b3b623..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration; - -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.serialization.UntypedNode; -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 MdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MdurationPostRequestBody} and sets the default values. - */ - public MdurationPostRequestBody() { - 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 MdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MdurationPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java deleted file mode 100644 index ea8bac749b4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 mduration method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MdurationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MdurationRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MdurationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mduration", pathParameters); - } - /** - * Instantiates a new {@link MdurationRequestBuilder} 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 MdurationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mduration", rawUrl); - } - /** - * Invoke action mduration - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MdurationPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action mduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MdurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action mduration - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MdurationPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action mduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MdurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MdurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MdurationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MdurationRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java deleted file mode 100644 index 6357a818f83..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.median; - -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.serialization.UntypedNode; -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 MedianPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MedianPostRequestBody} and sets the default values. - */ - public MedianPostRequestBody() { - 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 MedianPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MedianPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MedianPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java deleted file mode 100644 index 816493fcd33..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.median; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 median method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MedianRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MedianRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MedianRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/median", pathParameters); - } - /** - * Instantiates a new {@link MedianRequestBuilder} 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 MedianRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/median", rawUrl); - } - /** - * Invoke action median - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MedianPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action median - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MedianPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action median - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MedianPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action median - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MedianPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MedianRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MedianRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MedianRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java deleted file mode 100644 index 5680625864f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid; - -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.serialization.UntypedNode; -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 MidPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidPostRequestBody} and sets the default values. - */ - public MidPostRequestBody() { - 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 MidPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numChars", this.getNumChars()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - 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 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 numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java deleted file mode 100644 index 82c58129c42..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 mid method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MidRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MidRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mid", pathParameters); - } - /** - * Instantiates a new {@link MidRequestBuilder} 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 MidRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mid", rawUrl); - } - /** - * Invoke action mid - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MidPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action mid - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MidPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action mid - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MidPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action mid - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MidPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MidRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MidRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MidRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java deleted file mode 100644 index d21e8df0965..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb; - -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.serialization.UntypedNode; -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 MidbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidbPostRequestBody} and sets the default values. - */ - public MidbPostRequestBody() { - 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 MidbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numBytes", this.getNumBytes()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - 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 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 numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java deleted file mode 100644 index c1ed95d7999..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 midb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MidbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MidbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/midb", pathParameters); - } - /** - * Instantiates a new {@link MidbRequestBuilder} 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 MidbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/midb", rawUrl); - } - /** - * Invoke action midb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MidbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action midb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MidbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action midb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MidbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action midb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MidbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MidbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MidbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MidbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java deleted file mode 100644 index aa6fb5d7e64..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.min; - -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.serialization.UntypedNode; -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 MinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinPostRequestBody} and sets the default values. - */ - public MinPostRequestBody() { - 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 MinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java deleted file mode 100644 index 0d9e587fdc6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.min; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 min method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/min", pathParameters); - } - /** - * Instantiates a new {@link MinRequestBuilder} 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 MinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/min", rawUrl); - } - /** - * Invoke action min - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action min - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action min - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action min - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java deleted file mode 100644 index 5b20a77e21f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina; - -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.serialization.UntypedNode; -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 MinAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinAPostRequestBody} and sets the default values. - */ - public MinAPostRequestBody() { - 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 MinAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java deleted file mode 100644 index 32d850685bf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 minA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MinARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minA", pathParameters); - } - /** - * Instantiates a new {@link MinARequestBuilder} 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 MinARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minA", rawUrl); - } - /** - * Invoke action minA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action minA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action minA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action minA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinARequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java deleted file mode 100644 index 006286ab46d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute; - -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.serialization.UntypedNode; -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 MinutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinutePostRequestBody} and sets the default values. - */ - public MinutePostRequestBody() { - 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 MinutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinutePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java deleted file mode 100644 index 6dbb982f66a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 minute method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinuteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MinuteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinuteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minute", pathParameters); - } - /** - * Instantiates a new {@link MinuteRequestBuilder} 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 MinuteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minute", rawUrl); - } - /** - * Invoke action minute - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinutePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action minute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MinutePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action minute - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinutePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action minute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MinutePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinuteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinuteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinuteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java deleted file mode 100644 index 79a66de545c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr; - -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.serialization.UntypedNode; -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 MirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MirrPostRequestBody} and sets the default values. - */ - public MirrPostRequestBody() { - 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 MirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MirrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("financeRate", (n) -> { this.setFinanceRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("reinvestRate", (n) -> { this.setReinvestRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the financeRate property value. The financeRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFinanceRate() { - return this.backingStore.get("financeRate"); - } - /** - * Gets the reinvestRate property value. The reinvestRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReinvestRate() { - return this.backingStore.get("reinvestRate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("financeRate", this.getFinanceRate()); - writer.writeObjectValue("reinvestRate", this.getReinvestRate()); - writer.writeObjectValue("values", this.getValues()); - 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 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 financeRate property value. The financeRate property - * @param value Value to set for the financeRate property. - */ - public void setFinanceRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("financeRate", value); - } - /** - * Sets the reinvestRate property value. The reinvestRate property - * @param value Value to set for the reinvestRate property. - */ - public void setReinvestRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reinvestRate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java deleted file mode 100644 index 0516e6bdd29..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 mirr method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MirrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MirrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MirrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mirr", pathParameters); - } - /** - * Instantiates a new {@link MirrRequestBuilder} 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 MirrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mirr", rawUrl); - } - /** - * Invoke action mirr - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MirrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action mirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MirrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action mirr - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MirrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action mirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MirrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MirrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MirrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MirrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java deleted file mode 100644 index 47227a438b2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod; - -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.serialization.UntypedNode; -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 ModPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ModPostRequestBody} and sets the default values. - */ - public ModPostRequestBody() { - 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 ModPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ModPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ModPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the divisor property value. The divisor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDivisor() { - return this.backingStore.get("divisor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("divisor", (n) -> { this.setDivisor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("divisor", this.getDivisor()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 divisor property value. The divisor property - * @param value Value to set for the divisor property. - */ - public void setDivisor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("divisor", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java deleted file mode 100644 index 0ba6135ed39..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 mod method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ModRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ModRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ModRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mod", pathParameters); - } - /** - * Instantiates a new {@link ModRequestBuilder} 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 ModRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mod", rawUrl); - } - /** - * Invoke action mod - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ModPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action mod - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ModPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action mod - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ModPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action mod - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ModPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ModRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ModRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ModRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java deleted file mode 100644 index ec7bcb00c09..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.month; - -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.serialization.UntypedNode; -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 MonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MonthPostRequestBody} and sets the default values. - */ - public MonthPostRequestBody() { - 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 MonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MonthPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java deleted file mode 100644 index 7117cbad907..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.month; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 month method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MonthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MonthRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MonthRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/month", pathParameters); - } - /** - * Instantiates a new {@link MonthRequestBuilder} 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 MonthRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/month", rawUrl); - } - /** - * Invoke action month - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MonthPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action month - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MonthPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action month - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MonthPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action month - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MonthPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MonthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MonthRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MonthRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java deleted file mode 100644 index 4720df2301c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround; - -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.serialization.UntypedNode; -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 MroundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MroundPostRequestBody} and sets the default values. - */ - public MroundPostRequestBody() { - 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 MroundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MroundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MroundPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("multiple", (n) -> { this.setMultiple(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the multiple property value. The multiple property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMultiple() { - return this.backingStore.get("multiple"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("multiple", this.getMultiple()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 multiple property value. The multiple property - * @param value Value to set for the multiple property. - */ - public void setMultiple(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("multiple", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java deleted file mode 100644 index 3501c050332..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 mround method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MroundRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MroundRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MroundRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mround", pathParameters); - } - /** - * Instantiates a new {@link MroundRequestBuilder} 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 MroundRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mround", rawUrl); - } - /** - * Invoke action mround - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MroundPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action mround - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MroundPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action mround - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MroundPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action mround - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MroundPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MroundRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MroundRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MroundRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java deleted file mode 100644 index 9542c78437a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial; - -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.serialization.UntypedNode; -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 MultiNomialPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MultiNomialPostRequestBody} and sets the default values. - */ - public MultiNomialPostRequestBody() { - 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 MultiNomialPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MultiNomialPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MultiNomialPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java deleted file mode 100644 index d628eb1f725..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 multiNomial method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MultiNomialRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MultiNomialRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MultiNomialRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/multiNomial", pathParameters); - } - /** - * Instantiates a new {@link MultiNomialRequestBuilder} 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 MultiNomialRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/multiNomial", rawUrl); - } - /** - * Invoke action multiNomial - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MultiNomialPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action multiNomial - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final MultiNomialPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action multiNomial - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MultiNomialPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action multiNomial - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MultiNomialPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MultiNomialRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MultiNomialRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MultiNomialRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java deleted file mode 100644 index 6af670b6f59..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.n; - -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.serialization.UntypedNode; -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 NPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NPostRequestBody} and sets the default values. - */ - public NPostRequestBody() { - 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 NPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java deleted file mode 100644 index 261c9cb7345..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.n; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 n method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/n", pathParameters); - } - /** - * Instantiates a new {@link NRequestBuilder} 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 NRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/n", rawUrl); - } - /** - * Invoke action n - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action n - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action n - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action n - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java deleted file mode 100644 index 0abcade2dea..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.na; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 na method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/na", pathParameters); - } - /** - * Instantiates a new {@link NaRequestBuilder} 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 NaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/na", rawUrl); - } - /** - * Invoke action na - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action na - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action na - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action na - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 NaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java deleted file mode 100644 index 637756fa3d9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist; - -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.serialization.UntypedNode; -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 NegBinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NegBinomDistPostRequestBody} and sets the default values. - */ - public NegBinomDistPostRequestBody() { - 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 NegBinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NegBinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NegBinomDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberF", (n) -> { this.setNumberF(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberF property value. The numberF property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberF() { - return this.backingStore.get("numberF"); - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("numberF", this.getNumberF()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberF property value. The numberF property - * @param value Value to set for the numberF property. - */ - public void setNumberF(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberF", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java deleted file mode 100644 index d732ee36aa2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 negBinom_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NegBinomDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NegBinomDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NegBinomDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/negBinom_Dist", pathParameters); - } - /** - * Instantiates a new {@link NegBinomDistRequestBuilder} 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 NegBinomDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/negBinom_Dist", rawUrl); - } - /** - * Invoke action negBinom_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NegBinomDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action negBinom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NegBinomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action negBinom_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NegBinomDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action negBinom_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NegBinomDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NegBinomDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NegBinomDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NegBinomDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java deleted file mode 100644 index aff84464e9b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays; - -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.serialization.UntypedNode; -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 NetworkDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysPostRequestBody} and sets the default values. - */ - public NetworkDaysPostRequestBody() { - 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 NetworkDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java deleted file mode 100644 index 7a125bd30f8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 networkDays method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NetworkDaysRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NetworkDaysRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays", pathParameters); - } - /** - * Instantiates a new {@link NetworkDaysRequestBuilder} 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 NetworkDaysRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays", rawUrl); - } - /** - * Invoke action networkDays - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NetworkDaysPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action networkDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NetworkDaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action networkDays - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NetworkDaysPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action networkDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NetworkDaysPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NetworkDaysRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NetworkDaysRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NetworkDaysRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java deleted file mode 100644 index ae5ffc83327..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl; - -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.serialization.UntypedNode; -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 NetworkDaysIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysIntlPostRequestBody} and sets the default values. - */ - public NetworkDaysIntlPostRequestBody() { - 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 NetworkDaysIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysIntlPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * 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("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - 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 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 endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java deleted file mode 100644 index 133dab4cdf5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 networkDays_Intl method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysIntlRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NetworkDaysIntlRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NetworkDaysIntlRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays_Intl", pathParameters); - } - /** - * Instantiates a new {@link NetworkDaysIntlRequestBuilder} 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 NetworkDaysIntlRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays_Intl", rawUrl); - } - /** - * Invoke action networkDays_Intl - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NetworkDaysIntlPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action networkDays_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NetworkDaysIntlPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action networkDays_Intl - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NetworkDaysIntlPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action networkDays_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NetworkDaysIntlPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NetworkDaysIntlRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NetworkDaysIntlRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NetworkDaysIntlRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java deleted file mode 100644 index 70280b81d58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal; - -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.serialization.UntypedNode; -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 NominalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NominalPostRequestBody} and sets the default values. - */ - public NominalPostRequestBody() { - 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 NominalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NominalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NominalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the effectRate property value. The effectRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEffectRate() { - return this.backingStore.get("effectRate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("effectRate", (n) -> { this.setEffectRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * 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("effectRate", this.getEffectRate()); - writer.writeObjectValue("npery", this.getNpery()); - 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 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 effectRate property value. The effectRate property - * @param value Value to set for the effectRate property. - */ - public void setEffectRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("effectRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java deleted file mode 100644 index bbd8868d375..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 nominal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NominalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NominalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NominalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nominal", pathParameters); - } - /** - * Instantiates a new {@link NominalRequestBuilder} 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 NominalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nominal", rawUrl); - } - /** - * Invoke action nominal - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NominalPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action nominal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NominalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action nominal - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NominalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action nominal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NominalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NominalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NominalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NominalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java deleted file mode 100644 index 299d307381c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist; - -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.serialization.UntypedNode; -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 NormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormDistPostRequestBody} and sets the default values. - */ - public NormDistPostRequestBody() { - 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 NormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java deleted file mode 100644 index f7fb0ffb86c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 norm_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NormDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NormDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Dist", pathParameters); - } - /** - * Instantiates a new {@link NormDistRequestBuilder} 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 NormDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Dist", rawUrl); - } - /** - * Invoke action norm_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action norm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action norm_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action norm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NormDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NormDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java deleted file mode 100644 index b6f17469f7e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv; - -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.serialization.UntypedNode; -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 NormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormInvPostRequestBody} and sets the default values. - */ - public NormInvPostRequestBody() { - 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 NormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * 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("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - 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 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 mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java deleted file mode 100644 index 3db802060da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 norm_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NormInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NormInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Inv", pathParameters); - } - /** - * Instantiates a new {@link NormInvRequestBuilder} 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 NormInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Inv", rawUrl); - } - /** - * Invoke action norm_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action norm_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action norm_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action norm_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NormInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NormInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java deleted file mode 100644 index 4df942e8a89..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist; - -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.serialization.UntypedNode; -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 NormSDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSDistPostRequestBody} and sets the default values. - */ - public NormSDistPostRequestBody() { - 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 NormSDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("z", (n) -> { this.setZ(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the z property value. The z property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getZ() { - return this.backingStore.get("z"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("z", this.getZ()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the z property value. The z property - * @param value Value to set for the z property. - */ - public void setZ(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("z", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java deleted file mode 100644 index aba7b8a96cb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 norm_S_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NormSDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NormSDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Dist", pathParameters); - } - /** - * Instantiates a new {@link NormSDistRequestBuilder} 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 NormSDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Dist", rawUrl); - } - /** - * Invoke action norm_S_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormSDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action norm_S_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormSDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action norm_S_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormSDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action norm_S_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormSDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NormSDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormSDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NormSDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java deleted file mode 100644 index f1aeeaa1d99..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv; - -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.serialization.UntypedNode; -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 NormSInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSInvPostRequestBody} and sets the default values. - */ - public NormSInvPostRequestBody() { - 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 NormSInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("probability", this.getProbability()); - 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 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 probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java deleted file mode 100644 index d25eb2f52db..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 norm_S_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NormSInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NormSInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Inv", pathParameters); - } - /** - * Instantiates a new {@link NormSInvRequestBuilder} 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 NormSInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Inv", rawUrl); - } - /** - * Invoke action norm_S_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormSInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action norm_S_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NormSInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action norm_S_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormSInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action norm_S_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NormSInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NormSInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NormSInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NormSInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java deleted file mode 100644 index 0f415964ed0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.not; - -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.serialization.UntypedNode; -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 NotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NotPostRequestBody} and sets the default values. - */ - public NotPostRequestBody() { - 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 NotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NotPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("logical", (n) -> { this.setLogical(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logical property value. The logical property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogical() { - return this.backingStore.get("logical"); - } - /** - * 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("logical", this.getLogical()); - 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 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 logical property value. The logical property - * @param value Value to set for the logical property. - */ - public void setLogical(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logical", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java deleted file mode 100644 index e74a9dbd19c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.not; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 not method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NotRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NotRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NotRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/not", pathParameters); - } - /** - * Instantiates a new {@link NotRequestBuilder} 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 NotRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/not", rawUrl); - } - /** - * Invoke action not - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NotPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action not - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action not - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NotPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action not - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NotPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NotRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NotRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NotRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java deleted file mode 100644 index b7dbf2d0e2f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.now; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 now method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NowRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NowRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NowRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/now", pathParameters); - } - /** - * Instantiates a new {@link NowRequestBuilder} 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 NowRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/now", rawUrl); - } - /** - * Invoke action now - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action now - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action now - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action now - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 NowRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NowRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NowRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java deleted file mode 100644 index 9aa3c9c6dba..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper; - -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.serialization.UntypedNode; -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 NperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NperPostRequestBody} and sets the default values. - */ - public NperPostRequestBody() { - 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 NperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NperPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java deleted file mode 100644 index ae9753f3c2e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 nper method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NperRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NperRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NperRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nper", pathParameters); - } - /** - * Instantiates a new {@link NperRequestBuilder} 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 NperRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nper", rawUrl); - } - /** - * Invoke action nper - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NperPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action nper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action nper - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NperPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action nper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NperRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NperRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java deleted file mode 100644 index af315bdcf61..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv; - -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.serialization.UntypedNode; -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 NpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NpvPostRequestBody} and sets the default values. - */ - public NpvPostRequestBody() { - 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 NpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NpvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - 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 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 rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java deleted file mode 100644 index 0ce22b4d305..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 npv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NpvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NpvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NpvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/npv", pathParameters); - } - /** - * Instantiates a new {@link NpvRequestBuilder} 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 NpvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/npv", rawUrl); - } - /** - * Invoke action npv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NpvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action npv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NpvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action npv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NpvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action npv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NpvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NpvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NpvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NpvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java deleted file mode 100644 index 4e901b9f58e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue; - -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.serialization.UntypedNode; -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 NumberValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NumberValuePostRequestBody} and sets the default values. - */ - public NumberValuePostRequestBody() { - 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 NumberValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NumberValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NumberValuePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the decimalSeparator property value. The decimalSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalSeparator() { - return this.backingStore.get("decimalSeparator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimalSeparator", (n) -> { this.setDecimalSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("groupSeparator", (n) -> { this.setGroupSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the groupSeparator property value. The groupSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGroupSeparator() { - return this.backingStore.get("groupSeparator"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("decimalSeparator", this.getDecimalSeparator()); - writer.writeObjectValue("groupSeparator", this.getGroupSeparator()); - writer.writeObjectValue("text", this.getText()); - 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 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 decimalSeparator property value. The decimalSeparator property - * @param value Value to set for the decimalSeparator property. - */ - public void setDecimalSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalSeparator", value); - } - /** - * Sets the groupSeparator property value. The groupSeparator property - * @param value Value to set for the groupSeparator property. - */ - public void setGroupSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("groupSeparator", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java deleted file mode 100644 index af92fd7bf2d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 numberValue method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NumberValueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link NumberValueRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NumberValueRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/numberValue", pathParameters); - } - /** - * Instantiates a new {@link NumberValueRequestBuilder} 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 NumberValueRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/numberValue", rawUrl); - } - /** - * Invoke action numberValue - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NumberValuePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action numberValue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final NumberValuePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action numberValue - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NumberValuePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action numberValue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final NumberValuePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NumberValueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NumberValueRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NumberValueRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java deleted file mode 100644 index 6e8532d1f90..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin; - -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.serialization.UntypedNode; -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 Oct2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2BinPostRequestBody} and sets the default values. - */ - public Oct2BinPostRequestBody() { - 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 Oct2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2BinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java deleted file mode 100644 index 9815ef33b98..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oct2Bin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2BinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Oct2BinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Oct2BinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Bin", pathParameters); - } - /** - * Instantiates a new {@link Oct2BinRequestBuilder} 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 Oct2BinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Bin", rawUrl); - } - /** - * Invoke action oct2Bin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2BinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oct2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oct2Bin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2BinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oct2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2BinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Oct2BinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2BinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Oct2BinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java deleted file mode 100644 index 84f836d87dd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec; - -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.serialization.UntypedNode; -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 Oct2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2DecPostRequestBody} and sets the default values. - */ - public Oct2DecPostRequestBody() { - 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 Oct2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2DecPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java deleted file mode 100644 index ce3197d091d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oct2Dec method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2DecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Oct2DecRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Oct2DecRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Dec", pathParameters); - } - /** - * Instantiates a new {@link Oct2DecRequestBuilder} 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 Oct2DecRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Dec", rawUrl); - } - /** - * Invoke action oct2Dec - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2DecPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oct2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oct2Dec - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2DecPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oct2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2DecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Oct2DecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2DecRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Oct2DecRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java deleted file mode 100644 index 721907d1b88..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex; - -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.serialization.UntypedNode; -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 Oct2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2HexPostRequestBody} and sets the default values. - */ - public Oct2HexPostRequestBody() { - 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 Oct2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2HexPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java deleted file mode 100644 index 8fc98db6ecf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oct2Hex method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2HexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link Oct2HexRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public Oct2HexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Hex", pathParameters); - } - /** - * Instantiates a new {@link Oct2HexRequestBuilder} 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 Oct2HexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Hex", rawUrl); - } - /** - * Invoke action oct2Hex - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2HexPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oct2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final Oct2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oct2Hex - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2HexPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oct2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Oct2HexPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 Oct2HexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public Oct2HexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new Oct2HexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java deleted file mode 100644 index d256d4fcd11..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd; - -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.serialization.UntypedNode; -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 OddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddPostRequestBody} and sets the default values. - */ - public OddPostRequestBody() { - 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 OddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java deleted file mode 100644 index 71bea8b1e1f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 odd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/odd", pathParameters); - } - /** - * Instantiates a new {@link OddRequestBuilder} 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 OddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/odd", rawUrl); - } - /** - * Invoke action odd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action odd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action odd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action odd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java deleted file mode 100644 index fafecbe4e86..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice; - -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.serialization.UntypedNode; -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 OddFPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFPricePostRequestBody} and sets the default values. - */ - public OddFPricePostRequestBody() { - 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 OddFPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFPricePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java deleted file mode 100644 index 8534ee88154..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oddFPrice method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OddFPriceRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OddFPriceRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFPrice", pathParameters); - } - /** - * Instantiates a new {@link OddFPriceRequestBuilder} 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 OddFPriceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFPrice", rawUrl); - } - /** - * Invoke action oddFPrice - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddFPricePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oddFPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddFPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oddFPrice - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddFPricePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oddFPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddFPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OddFPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddFPriceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OddFPriceRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java deleted file mode 100644 index a2f2258e2eb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield; - -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.serialization.UntypedNode; -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 OddFYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFYieldPostRequestBody} and sets the default values. - */ - public OddFYieldPostRequestBody() { - 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 OddFYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFYieldPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java deleted file mode 100644 index 2e46c7ca0bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oddFYield method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFYieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OddFYieldRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OddFYieldRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFYield", pathParameters); - } - /** - * Instantiates a new {@link OddFYieldRequestBuilder} 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 OddFYieldRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFYield", rawUrl); - } - /** - * Invoke action oddFYield - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddFYieldPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oddFYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddFYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oddFYield - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddFYieldPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oddFYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddFYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OddFYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddFYieldRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OddFYieldRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java deleted file mode 100644 index f36c8a9b6f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice; - -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.serialization.UntypedNode; -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 OddLPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLPricePostRequestBody} and sets the default values. - */ - public OddLPricePostRequestBody() { - 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 OddLPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLPricePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java deleted file mode 100644 index 4107b1e58b6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oddLPrice method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OddLPriceRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OddLPriceRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLPrice", pathParameters); - } - /** - * Instantiates a new {@link OddLPriceRequestBuilder} 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 OddLPriceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLPrice", rawUrl); - } - /** - * Invoke action oddLPrice - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddLPricePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oddLPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddLPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oddLPrice - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddLPricePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oddLPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddLPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OddLPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddLPriceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OddLPriceRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java deleted file mode 100644 index 4de5b29b54a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield; - -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.serialization.UntypedNode; -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 OddLYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLYieldPostRequestBody} and sets the default values. - */ - public OddLYieldPostRequestBody() { - 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 OddLYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLYieldPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java deleted file mode 100644 index aabcc80369a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 oddLYield method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLYieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OddLYieldRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OddLYieldRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLYield", pathParameters); - } - /** - * Instantiates a new {@link OddLYieldRequestBuilder} 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 OddLYieldRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLYield", rawUrl); - } - /** - * Invoke action oddLYield - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddLYieldPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action oddLYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OddLYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action oddLYield - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddLYieldPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action oddLYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OddLYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OddLYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OddLYieldRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OddLYieldRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java deleted file mode 100644 index 229867b2718..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.or; - -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.serialization.UntypedNode; -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 OrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OrPostRequestBody} and sets the default values. - */ - public OrPostRequestBody() { - 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 OrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java deleted file mode 100644 index 50bc397535a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.or; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 or method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/or", pathParameters); - } - /** - * Instantiates a new {@link OrRequestBuilder} 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 OrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/or", rawUrl); - } - /** - * Invoke action or - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action or - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final OrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action or - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action or - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final OrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java deleted file mode 100644 index e89354a4c72..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration; - -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.serialization.UntypedNode; -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 PdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PdurationPostRequestBody} and sets the default values. - */ - public PdurationPostRequestBody() { - 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 PdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PdurationPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java deleted file mode 100644 index 5d60e467e78..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 pduration method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PdurationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PdurationRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PdurationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pduration", pathParameters); - } - /** - * Instantiates a new {@link PdurationRequestBuilder} 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 PdurationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pduration", rawUrl); - } - /** - * Invoke action pduration - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PdurationPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action pduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PdurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action pduration - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PdurationPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action pduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PdurationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PdurationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PdurationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PdurationRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java deleted file mode 100644 index 59da5f59cda..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc; - -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.serialization.UntypedNode; -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 PercentileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileExcPostRequestBody} and sets the default values. - */ - public PercentileExcPostRequestBody() { - 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 PercentileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileExcPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java deleted file mode 100644 index c6269b42157..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 percentile_Exc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileExcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PercentileExcRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PercentileExcRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Exc", pathParameters); - } - /** - * Instantiates a new {@link PercentileExcRequestBuilder} 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 PercentileExcRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Exc", rawUrl); - } - /** - * Invoke action percentile_Exc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentileExcPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action percentile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentileExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action percentile_Exc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentileExcPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action percentile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentileExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PercentileExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentileExcRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PercentileExcRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java deleted file mode 100644 index ce24574f4dd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc; - -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.serialization.UntypedNode; -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 PercentileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileIncPostRequestBody} and sets the default values. - */ - public PercentileIncPostRequestBody() { - 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 PercentileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileIncPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java deleted file mode 100644 index 0ca005e6587..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 percentile_Inc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileIncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PercentileIncRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PercentileIncRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Inc", pathParameters); - } - /** - * Instantiates a new {@link PercentileIncRequestBuilder} 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 PercentileIncRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Inc", rawUrl); - } - /** - * Invoke action percentile_Inc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentileIncPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action percentile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentileIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action percentile_Inc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentileIncPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action percentile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentileIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PercentileIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentileIncRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PercentileIncRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java deleted file mode 100644 index 1f85ab99d52..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc; - -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.serialization.UntypedNode; -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 PercentRankExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankExcPostRequestBody} and sets the default values. - */ - public PercentRankExcPostRequestBody() { - 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 PercentRankExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankExcPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java deleted file mode 100644 index 957f37995f1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 percentRank_Exc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankExcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PercentRankExcRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PercentRankExcRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Exc", pathParameters); - } - /** - * Instantiates a new {@link PercentRankExcRequestBuilder} 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 PercentRankExcRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Exc", rawUrl); - } - /** - * Invoke action percentRank_Exc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentRankExcPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action percentRank_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentRankExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action percentRank_Exc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentRankExcPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action percentRank_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentRankExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PercentRankExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentRankExcRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PercentRankExcRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java deleted file mode 100644 index 6d7b059a422..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc; - -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.serialization.UntypedNode; -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 PercentRankIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankIncPostRequestBody} and sets the default values. - */ - public PercentRankIncPostRequestBody() { - 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 PercentRankIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankIncPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java deleted file mode 100644 index b09099ad93b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 percentRank_Inc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankIncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PercentRankIncRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PercentRankIncRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Inc", pathParameters); - } - /** - * Instantiates a new {@link PercentRankIncRequestBuilder} 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 PercentRankIncRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Inc", rawUrl); - } - /** - * Invoke action percentRank_Inc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentRankIncPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action percentRank_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PercentRankIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action percentRank_Inc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentRankIncPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action percentRank_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PercentRankIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PercentRankIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PercentRankIncRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PercentRankIncRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java deleted file mode 100644 index b13ed1c397a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut; - -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.serialization.UntypedNode; -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 PermutPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutPostRequestBody} and sets the default values. - */ - public PermutPostRequestBody() { - 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 PermutPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java deleted file mode 100644 index 0eb63ae5337..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 permut method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermutRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermutRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permut", pathParameters); - } - /** - * Instantiates a new {@link PermutRequestBuilder} 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 PermutRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permut", rawUrl); - } - /** - * Invoke action permut - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PermutPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action permut - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PermutPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action permut - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PermutPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action permut - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PermutPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermutRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermutRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermutRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java deleted file mode 100644 index 98b778533bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa; - -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.serialization.UntypedNode; -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 PermutationaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutationaPostRequestBody} and sets the default values. - */ - public PermutationaPostRequestBody() { - 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 PermutationaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutationaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutationaPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java deleted file mode 100644 index a6bb6d074a2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 permutationa method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutationaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermutationaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermutationaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permutationa", pathParameters); - } - /** - * Instantiates a new {@link PermutationaRequestBuilder} 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 PermutationaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permutationa", rawUrl); - } - /** - * Invoke action permutationa - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PermutationaPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action permutationa - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PermutationaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action permutationa - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PermutationaPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action permutationa - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PermutationaPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PermutationaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermutationaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermutationaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java deleted file mode 100644 index 165bb6fa073..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi; - -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.serialization.UntypedNode; -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 PhiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PhiPostRequestBody} and sets the default values. - */ - public PhiPostRequestBody() { - 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 PhiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PhiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PhiPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("x", this.getX()); - 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 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 x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java deleted file mode 100644 index f34456da59b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 phi method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PhiRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PhiRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PhiRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/phi", pathParameters); - } - /** - * Instantiates a new {@link PhiRequestBuilder} 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 PhiRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/phi", rawUrl); - } - /** - * Invoke action phi - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PhiPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action phi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PhiPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action phi - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PhiPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action phi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PhiPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PhiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PhiRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PhiRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java deleted file mode 100644 index 6be359b35db..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pi; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 pi method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PiRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PiRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PiRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pi", pathParameters); - } - /** - * Instantiates a new {@link PiRequestBuilder} 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 PiRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pi", rawUrl); - } - /** - * Invoke action pi - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action pi - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action pi - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action pi - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 PiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PiRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PiRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java deleted file mode 100644 index e9e6072173a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt; - -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.serialization.UntypedNode; -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 PmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PmtPostRequestBody} and sets the default values. - */ - public PmtPostRequestBody() { - 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 PmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PmtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java deleted file mode 100644 index 709364c8d18..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 pmt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PmtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PmtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pmt", pathParameters); - } - /** - * Instantiates a new {@link PmtRequestBuilder} 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 PmtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pmt", rawUrl); - } - /** - * Invoke action pmt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PmtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action pmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action pmt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PmtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action pmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PmtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PmtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java deleted file mode 100644 index 521f0331464..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist; - -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.serialization.UntypedNode; -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 PoissonDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PoissonDistPostRequestBody} and sets the default values. - */ - public PoissonDistPostRequestBody() { - 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 PoissonDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PoissonDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PoissonDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java deleted file mode 100644 index 521468eec91..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 poisson_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PoissonDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PoissonDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PoissonDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/poisson_Dist", pathParameters); - } - /** - * Instantiates a new {@link PoissonDistRequestBuilder} 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 PoissonDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/poisson_Dist", rawUrl); - } - /** - * Invoke action poisson_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PoissonDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action poisson_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PoissonDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action poisson_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PoissonDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action poisson_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PoissonDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PoissonDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PoissonDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PoissonDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java deleted file mode 100644 index 271dc151aad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.power; - -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.serialization.UntypedNode; -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 PowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PowerPostRequestBody} and sets the default values. - */ - public PowerPostRequestBody() { - 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 PowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PowerPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("power", (n) -> { this.setPower(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the power property value. The power property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPower() { - return this.backingStore.get("power"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("power", this.getPower()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the power property value. The power property - * @param value Value to set for the power property. - */ - public void setPower(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("power", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java deleted file mode 100644 index 3819bcb5963..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.power; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 power method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PowerRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PowerRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PowerRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/power", pathParameters); - } - /** - * Instantiates a new {@link PowerRequestBuilder} 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 PowerRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/power", rawUrl); - } - /** - * Invoke action power - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PowerPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action power - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action power - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PowerPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action power - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PowerPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PowerRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PowerRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PowerRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java deleted file mode 100644 index f1813ead4fb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt; - -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.serialization.UntypedNode; -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 PpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PpmtPostRequestBody} and sets the default values. - */ - public PpmtPostRequestBody() { - 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 PpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PpmtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java deleted file mode 100644 index ec48eab5e94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 ppmt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PpmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PpmtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PpmtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ppmt", pathParameters); - } - /** - * Instantiates a new {@link PpmtRequestBuilder} 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 PpmtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ppmt", rawUrl); - } - /** - * Invoke action ppmt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PpmtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action ppmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PpmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action ppmt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PpmtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action ppmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PpmtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PpmtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PpmtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PpmtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java deleted file mode 100644 index 44b1022647c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.price; - -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.serialization.UntypedNode; -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 PricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PricePostRequestBody} and sets the default values. - */ - public PricePostRequestBody() { - 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 PricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PricePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java deleted file mode 100644 index 53cb1706850..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.price; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 price method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PriceRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PriceRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/price", pathParameters); - } - /** - * Instantiates a new {@link PriceRequestBuilder} 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 PriceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/price", rawUrl); - } - /** - * Invoke action price - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PricePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action price - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action price - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PricePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action price - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PriceRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java deleted file mode 100644 index ac9ef9232cd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc; - -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.serialization.UntypedNode; -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 PriceDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceDiscPostRequestBody} and sets the default values. - */ - public PriceDiscPostRequestBody() { - 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 PriceDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceDiscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java deleted file mode 100644 index b3fb3c33161..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 priceDisc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceDiscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PriceDiscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PriceDiscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceDisc", pathParameters); - } - /** - * Instantiates a new {@link PriceDiscRequestBuilder} 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 PriceDiscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceDisc", rawUrl); - } - /** - * Invoke action priceDisc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PriceDiscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action priceDisc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PriceDiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action priceDisc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PriceDiscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action priceDisc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PriceDiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PriceDiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceDiscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PriceDiscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java deleted file mode 100644 index da501a27302..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat; - -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.serialization.UntypedNode; -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 PriceMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceMatPostRequestBody} and sets the default values. - */ - public PriceMatPostRequestBody() { - 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 PriceMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceMatPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java deleted file mode 100644 index e78d5f5d1dd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 priceMat method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceMatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PriceMatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PriceMatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceMat", pathParameters); - } - /** - * Instantiates a new {@link PriceMatRequestBuilder} 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 PriceMatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceMat", rawUrl); - } - /** - * Invoke action priceMat - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PriceMatPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action priceMat - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PriceMatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action priceMat - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PriceMatPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action priceMat - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PriceMatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PriceMatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PriceMatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PriceMatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java deleted file mode 100644 index b7266f7ce43..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.product; - -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.serialization.UntypedNode; -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 ProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProductPostRequestBody} and sets the default values. - */ - public ProductPostRequestBody() { - 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 ProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProductPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java deleted file mode 100644 index b32f85b718e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.product; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 product method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProductRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ProductRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ProductRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/product", pathParameters); - } - /** - * Instantiates a new {@link ProductRequestBuilder} 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 ProductRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/product", rawUrl); - } - /** - * Invoke action product - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ProductPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action product - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ProductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action product - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProductPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action product - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProductPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ProductRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProductRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ProductRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java deleted file mode 100644 index 2de12327d37..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper; - -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.serialization.UntypedNode; -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 ProperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProperPostRequestBody} and sets the default values. - */ - public ProperPostRequestBody() { - 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 ProperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProperPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java deleted file mode 100644 index a35b1ab47bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 proper method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProperRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ProperRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ProperRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/proper", pathParameters); - } - /** - * Instantiates a new {@link ProperRequestBuilder} 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 ProperRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/proper", rawUrl); - } - /** - * Invoke action proper - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ProperPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action proper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ProperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action proper - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProperPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action proper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ProperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProperRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ProperRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java deleted file mode 100644 index 8bce86c640b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv; - -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.serialization.UntypedNode; -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 PvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PvPostRequestBody} and sets the default values. - */ - public PvPostRequestBody() { - 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 PvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java deleted file mode 100644 index cf7b940bcb6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 pv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pv", pathParameters); - } - /** - * Instantiates a new {@link PvRequestBuilder} 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 PvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pv", rawUrl); - } - /** - * Invoke action pv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action pv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final PvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action pv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action pv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final PvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java deleted file mode 100644 index a8b644f42d5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc; - -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.serialization.UntypedNode; -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 QuartileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileExcPostRequestBody} and sets the default values. - */ - public QuartileExcPostRequestBody() { - 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 QuartileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileExcPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java deleted file mode 100644 index f66321c7ee2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 quartile_Exc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileExcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link QuartileExcRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public QuartileExcRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Exc", pathParameters); - } - /** - * Instantiates a new {@link QuartileExcRequestBuilder} 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 QuartileExcRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Exc", rawUrl); - } - /** - * Invoke action quartile_Exc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuartileExcPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action quartile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuartileExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action quartile_Exc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuartileExcPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action quartile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuartileExcPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 QuartileExcRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuartileExcRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new QuartileExcRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java deleted file mode 100644 index 00fd1cb1722..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc; - -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.serialization.UntypedNode; -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 QuartileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileIncPostRequestBody} and sets the default values. - */ - public QuartileIncPostRequestBody() { - 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 QuartileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileIncPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java deleted file mode 100644 index e2d30b311e2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 quartile_Inc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileIncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link QuartileIncRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public QuartileIncRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Inc", pathParameters); - } - /** - * Instantiates a new {@link QuartileIncRequestBuilder} 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 QuartileIncRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Inc", rawUrl); - } - /** - * Invoke action quartile_Inc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuartileIncPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action quartile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuartileIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action quartile_Inc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuartileIncPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action quartile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuartileIncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 QuartileIncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuartileIncRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new QuartileIncRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java deleted file mode 100644 index b06ae4cdec5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient; - -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.serialization.UntypedNode; -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 QuotientPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuotientPostRequestBody} and sets the default values. - */ - public QuotientPostRequestBody() { - 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 QuotientPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuotientPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuotientPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the denominator property value. The denominator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDenominator() { - return this.backingStore.get("denominator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("denominator", (n) -> { this.setDenominator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numerator", (n) -> { this.setNumerator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numerator property value. The numerator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumerator() { - return this.backingStore.get("numerator"); - } - /** - * 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("denominator", this.getDenominator()); - writer.writeObjectValue("numerator", this.getNumerator()); - 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 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 denominator property value. The denominator property - * @param value Value to set for the denominator property. - */ - public void setDenominator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("denominator", value); - } - /** - * Sets the numerator property value. The numerator property - * @param value Value to set for the numerator property. - */ - public void setNumerator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numerator", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java deleted file mode 100644 index c9ed6d8de87..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 quotient method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuotientRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link QuotientRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public QuotientRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quotient", pathParameters); - } - /** - * Instantiates a new {@link QuotientRequestBuilder} 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 QuotientRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quotient", rawUrl); - } - /** - * Invoke action quotient - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuotientPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action quotient - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final QuotientPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action quotient - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuotientPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action quotient - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final QuotientPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 QuotientRequestBuilder} - */ - @jakarta.annotation.Nonnull - public QuotientRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new QuotientRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java deleted file mode 100644 index d22bebb5e66..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians; - -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.serialization.UntypedNode; -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 RadiansPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RadiansPostRequestBody} and sets the default values. - */ - public RadiansPostRequestBody() { - 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 RadiansPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RadiansPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RadiansPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("angle", this.getAngle()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", 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; - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java deleted file mode 100644 index a3049a01299..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 radians method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RadiansRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RadiansRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RadiansRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/radians", pathParameters); - } - /** - * Instantiates a new {@link RadiansRequestBuilder} 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 RadiansRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/radians", rawUrl); - } - /** - * Invoke action radians - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RadiansPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action radians - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RadiansPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action radians - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RadiansPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action radians - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RadiansPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RadiansRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RadiansRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RadiansRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java deleted file mode 100644 index f905b56eb2d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rand; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rand method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RandRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RandRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RandRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rand", pathParameters); - } - /** - * Instantiates a new {@link RandRequestBuilder} 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 RandRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rand", rawUrl); - } - /** - * Invoke action rand - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action rand - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rand - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action rand - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RandRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RandRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RandRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java deleted file mode 100644 index 6e8320a5024..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween; - -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.serialization.UntypedNode; -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 RandBetweenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RandBetweenPostRequestBody} and sets the default values. - */ - public RandBetweenPostRequestBody() { - 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 RandBetweenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RandBetweenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RandBetweenPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the bottom property value. The bottom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBottom() { - return this.backingStore.get("bottom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("bottom", (n) -> { this.setBottom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("top", (n) -> { this.setTop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the top property value. The top property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTop() { - return this.backingStore.get("top"); - } - /** - * 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("bottom", this.getBottom()); - writer.writeObjectValue("top", this.getTop()); - 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 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 bottom property value. The bottom property - * @param value Value to set for the bottom property. - */ - public void setBottom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("bottom", value); - } - /** - * Sets the top property value. The top property - * @param value Value to set for the top property. - */ - public void setTop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("top", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java deleted file mode 100644 index 98de67f2bfa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 randBetween method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RandBetweenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RandBetweenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RandBetweenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/randBetween", pathParameters); - } - /** - * Instantiates a new {@link RandBetweenRequestBuilder} 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 RandBetweenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/randBetween", rawUrl); - } - /** - * Invoke action randBetween - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RandBetweenPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action randBetween - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RandBetweenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action randBetween - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RandBetweenPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action randBetween - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RandBetweenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RandBetweenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RandBetweenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RandBetweenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java deleted file mode 100644 index 75226d7362f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg; - -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.serialization.UntypedNode; -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 RankAvgPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankAvgPostRequestBody} and sets the default values. - */ - public RankAvgPostRequestBody() { - 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 RankAvgPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankAvgPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankAvgPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java deleted file mode 100644 index cfb12f084d0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rank_Avg method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankAvgRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RankAvgRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RankAvgRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Avg", pathParameters); - } - /** - * Instantiates a new {@link RankAvgRequestBuilder} 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 RankAvgRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Avg", rawUrl); - } - /** - * Invoke action rank_Avg - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RankAvgPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rank_Avg - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RankAvgPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rank_Avg - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RankAvgPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rank_Avg - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RankAvgPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RankAvgRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RankAvgRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RankAvgRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java deleted file mode 100644 index bccc3d2ccaa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq; - -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.serialization.UntypedNode; -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 RankEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankEqPostRequestBody} and sets the default values. - */ - public RankEqPostRequestBody() { - 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 RankEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankEqPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java deleted file mode 100644 index 02701191953..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rank_Eq method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankEqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RankEqRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RankEqRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Eq", pathParameters); - } - /** - * Instantiates a new {@link RankEqRequestBuilder} 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 RankEqRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Eq", rawUrl); - } - /** - * Invoke action rank_Eq - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RankEqPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rank_Eq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RankEqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rank_Eq - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RankEqPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rank_Eq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RankEqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RankEqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RankEqRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RankEqRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java deleted file mode 100644 index 9b31335e706..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate; - -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.serialization.UntypedNode; -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 RatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RatePostRequestBody} and sets the default values. - */ - public RatePostRequestBody() { - 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 RatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RatePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("type", this.getType()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java deleted file mode 100644 index 844651b937d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rate method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rate", pathParameters); - } - /** - * Instantiates a new {@link RateRequestBuilder} 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 RateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rate", rawUrl); - } - /** - * Invoke action rate - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RatePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rate - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RatePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RatePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RateRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java deleted file mode 100644 index c08341e1e0e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.received; - -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.serialization.UntypedNode; -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 ReceivedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReceivedPostRequestBody} and sets the default values. - */ - public ReceivedPostRequestBody() { - 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 ReceivedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReceivedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReceivedPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java deleted file mode 100644 index c1d9d9b16bd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.received; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 received method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReceivedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReceivedRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReceivedRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/received", pathParameters); - } - /** - * Instantiates a new {@link ReceivedRequestBuilder} 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 ReceivedRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/received", rawUrl); - } - /** - * Invoke action received - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReceivedPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action received - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReceivedPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action received - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReceivedPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action received - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReceivedPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ReceivedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReceivedRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReceivedRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java deleted file mode 100644 index 3b576aaa6b7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace; - -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.serialization.UntypedNode; -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 ReplacePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplacePostRequestBody} and sets the default values. - */ - public ReplacePostRequestBody() { - 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 ReplacePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplacePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplacePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * 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("newText", this.getNewText()); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - 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 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 newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java deleted file mode 100644 index baaa9a7b098..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 replace method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplaceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReplaceRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReplaceRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replace", pathParameters); - } - /** - * Instantiates a new {@link ReplaceRequestBuilder} 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 ReplaceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replace", rawUrl); - } - /** - * Invoke action replace - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReplacePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action replace - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReplacePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action replace - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReplacePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action replace - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReplacePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ReplaceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReplaceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReplaceRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java deleted file mode 100644 index 544eafc5b6e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb; - -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.serialization.UntypedNode; -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 ReplaceBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplaceBPostRequestBody} and sets the default values. - */ - public ReplaceBPostRequestBody() { - 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 ReplaceBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplaceBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplaceBPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * 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("newText", this.getNewText()); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - 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 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 newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java deleted file mode 100644 index 3b9dd77a259..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 replaceB method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplaceBRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReplaceBRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReplaceBRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replaceB", pathParameters); - } - /** - * Instantiates a new {@link ReplaceBRequestBuilder} 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 ReplaceBRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replaceB", rawUrl); - } - /** - * Invoke action replaceB - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReplaceBPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action replaceB - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReplaceBPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action replaceB - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReplaceBPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action replaceB - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReplaceBPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ReplaceBRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReplaceBRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReplaceBRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java deleted file mode 100644 index 924edd1bb39..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept; - -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.serialization.UntypedNode; -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 ReptPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReptPostRequestBody} and sets the default values. - */ - public ReptPostRequestBody() { - 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 ReptPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReptPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReptPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numberTimes", (n) -> { this.setNumberTimes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberTimes property value. The numberTimes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberTimes() { - return this.backingStore.get("numberTimes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numberTimes", this.getNumberTimes()); - writer.writeObjectValue("text", this.getText()); - 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 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 numberTimes property value. The numberTimes property - * @param value Value to set for the numberTimes property. - */ - public void setNumberTimes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberTimes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java deleted file mode 100644 index 2c6a0715a69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rept method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReptRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReptRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rept", pathParameters); - } - /** - * Instantiates a new {@link ReptRequestBuilder} 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 ReptRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rept", rawUrl); - } - /** - * Invoke action rept - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReptPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rept - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ReptPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rept - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReptPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rept - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReptPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ReptRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReptRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReptRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java deleted file mode 100644 index 2ab6c5fa815..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.right; - -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.serialization.UntypedNode; -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 RightPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightPostRequestBody} and sets the default values. - */ - public RightPostRequestBody() { - 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 RightPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - 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 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 numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java deleted file mode 100644 index aa7dccd9af8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.right; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 right method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RightRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RightRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/right", pathParameters); - } - /** - * Instantiates a new {@link RightRequestBuilder} 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 RightRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/right", rawUrl); - } - /** - * Invoke action right - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RightPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action right - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RightPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action right - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RightPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action right - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RightPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RightRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RightRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java deleted file mode 100644 index 8a96bd17e48..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb; - -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.serialization.UntypedNode; -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 RightbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightbPostRequestBody} and sets the default values. - */ - public RightbPostRequestBody() { - 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 RightbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - 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 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 numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java deleted file mode 100644 index d192bc3da48..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rightb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RightbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RightbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rightb", pathParameters); - } - /** - * Instantiates a new {@link RightbRequestBuilder} 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 RightbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rightb", rawUrl); - } - /** - * Invoke action rightb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RightbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rightb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RightbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rightb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RightbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rightb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RightbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RightbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RightbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RightbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java deleted file mode 100644 index 60a887a754f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman; - -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.serialization.UntypedNode; -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 RomanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RomanPostRequestBody} and sets the default values. - */ - public RomanPostRequestBody() { - 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 RomanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RomanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RomanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("form", (n) -> { this.setForm(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the form property value. The form property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getForm() { - return this.backingStore.get("form"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("form", this.getForm()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 form property value. The form property - * @param value Value to set for the form property. - */ - public void setForm(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("form", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java deleted file mode 100644 index b8eb5cef074..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 roman method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RomanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RomanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RomanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roman", pathParameters); - } - /** - * Instantiates a new {@link RomanRequestBuilder} 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 RomanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roman", rawUrl); - } - /** - * Invoke action roman - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RomanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action roman - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RomanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action roman - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RomanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action roman - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RomanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RomanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RomanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RomanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java deleted file mode 100644 index 2af7512d001..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.round; - -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.serialization.UntypedNode; -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 RoundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundPostRequestBody} and sets the default values. - */ - public RoundPostRequestBody() { - 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 RoundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java deleted file mode 100644 index fc46e7358f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.round; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 round method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RoundRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RoundRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/round", pathParameters); - } - /** - * Instantiates a new {@link RoundRequestBuilder} 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 RoundRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/round", rawUrl); - } - /** - * Invoke action round - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action round - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action round - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action round - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RoundRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RoundRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java deleted file mode 100644 index f0383d249fb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown; - -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.serialization.UntypedNode; -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 RoundDownPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundDownPostRequestBody} and sets the default values. - */ - public RoundDownPostRequestBody() { - 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 RoundDownPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundDownPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundDownPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java deleted file mode 100644 index 65ce9302f23..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 roundDown method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundDownRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RoundDownRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RoundDownRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundDown", pathParameters); - } - /** - * Instantiates a new {@link RoundDownRequestBuilder} 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 RoundDownRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundDown", rawUrl); - } - /** - * Invoke action roundDown - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundDownPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action roundDown - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundDownPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action roundDown - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundDownPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action roundDown - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundDownPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RoundDownRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundDownRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RoundDownRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java deleted file mode 100644 index 8988bec9682..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup; - -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.serialization.UntypedNode; -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 RoundUpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundUpPostRequestBody} and sets the default values. - */ - public RoundUpPostRequestBody() { - 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 RoundUpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundUpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundUpPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java deleted file mode 100644 index 278bc609867..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 roundUp method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundUpRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RoundUpRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RoundUpRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundUp", pathParameters); - } - /** - * Instantiates a new {@link RoundUpRequestBuilder} 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 RoundUpRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundUp", rawUrl); - } - /** - * Invoke action roundUp - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundUpPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action roundUp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RoundUpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action roundUp - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundUpPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action roundUp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RoundUpPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RoundUpRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RoundUpRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RoundUpRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java deleted file mode 100644 index a9af65c8cfb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows; - -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.serialization.UntypedNode; -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 RowsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RowsPostRequestBody} and sets the default values. - */ - public RowsPostRequestBody() { - 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 RowsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RowsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RowsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("array", this.getArray()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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; - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java deleted file mode 100644 index 7e2cce4c368..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rows method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RowsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rows", pathParameters); - } - /** - * Instantiates a new {@link RowsRequestBuilder} 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 RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rows", rawUrl); - } - /** - * Invoke action rows - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RowsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rows - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RowsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rows - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RowsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rows - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RowsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RowsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java deleted file mode 100644 index ff153d05371..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri; - -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.serialization.UntypedNode; -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 RriPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RriPostRequestBody} and sets the default values. - */ - public RriPostRequestBody() { - 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 RriPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RriPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RriPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * 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("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - 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 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 fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java deleted file mode 100644 index 9443f146dc8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 rri method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RriRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RriRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RriRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rri", pathParameters); - } - /** - * Instantiates a new {@link RriRequestBuilder} 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 RriRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rri", rawUrl); - } - /** - * Invoke action rri - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RriPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action rri - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final RriPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action rri - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RriPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action rri - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RriPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RriRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RriRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RriRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java deleted file mode 100644 index ecbb6c78e92..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec; - -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.serialization.UntypedNode; -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 SecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecPostRequestBody} and sets the default values. - */ - public SecPostRequestBody() { - 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 SecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java deleted file mode 100644 index c634eab00dc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sec method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SecRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SecRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sec", pathParameters); - } - /** - * Instantiates a new {@link SecRequestBuilder} 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 SecRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sec", rawUrl); - } - /** - * Invoke action sec - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SecPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sec - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SecPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SecPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SecRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SecRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SecRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java deleted file mode 100644 index c144be7b44c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech; - -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.serialization.UntypedNode; -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 SechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SechPostRequestBody} and sets the default values. - */ - public SechPostRequestBody() { - 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 SechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SechPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java deleted file mode 100644 index 7e2eef6f528..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sech method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SechRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SechRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SechRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sech", pathParameters); - } - /** - * Instantiates a new {@link SechRequestBuilder} 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 SechRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sech", rawUrl); - } - /** - * Invoke action sech - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SechPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SechPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sech - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SechPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SechPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SechRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SechRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SechRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java deleted file mode 100644 index bf9268b9f36..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.second; - -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.serialization.UntypedNode; -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 SecondPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecondPostRequestBody} and sets the default values. - */ - public SecondPostRequestBody() { - 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 SecondPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecondPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecondPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java deleted file mode 100644 index e0d2d95b28a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.second; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 second method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecondRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SecondRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SecondRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/second", pathParameters); - } - /** - * Instantiates a new {@link SecondRequestBuilder} 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 SecondRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/second", rawUrl); - } - /** - * Invoke action second - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SecondPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action second - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SecondPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action second - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SecondPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action second - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SecondPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SecondRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SecondRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SecondRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java deleted file mode 100644 index 09d68815d90..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum; - -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.serialization.UntypedNode; -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 SeriesSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SeriesSumPostRequestBody} and sets the default values. - */ - public SeriesSumPostRequestBody() { - 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 SeriesSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SeriesSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SeriesSumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the coefficients property value. The coefficients property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoefficients() { - return this.backingStore.get("coefficients"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("coefficients", (n) -> { this.setCoefficients(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("m", (n) -> { this.setM(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the m property value. The m property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getM() { - return this.backingStore.get("m"); - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("coefficients", this.getCoefficients()); - writer.writeObjectValue("m", this.getM()); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - 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 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 coefficients property value. The coefficients property - * @param value Value to set for the coefficients property. - */ - public void setCoefficients(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coefficients", value); - } - /** - * Sets the m property value. The m property - * @param value Value to set for the m property. - */ - public void setM(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("m", value); - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java deleted file mode 100644 index a690e6b78aa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 seriesSum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesSumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SeriesSumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SeriesSumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/seriesSum", pathParameters); - } - /** - * Instantiates a new {@link SeriesSumRequestBuilder} 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 SeriesSumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/seriesSum", rawUrl); - } - /** - * Invoke action seriesSum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SeriesSumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action seriesSum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SeriesSumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action seriesSum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SeriesSumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action seriesSum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SeriesSumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SeriesSumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesSumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SeriesSumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java deleted file mode 100644 index 1620a488457..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet; - -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.serialization.UntypedNode; -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 SheetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetPostRequestBody} and sets the default values. - */ - public SheetPostRequestBody() { - 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 SheetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java deleted file mode 100644 index 50d00c8f749..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sheet method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheet", pathParameters); - } - /** - * Instantiates a new {@link SheetRequestBuilder} 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 SheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheet", rawUrl); - } - /** - * Invoke action sheet - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SheetPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sheet - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SheetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sheet - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SheetPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sheet - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SheetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java deleted file mode 100644 index efe0106e60f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets; - -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.serialization.UntypedNode; -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 SheetsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetsPostRequestBody} and sets the default values. - */ - public SheetsPostRequestBody() { - 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 SheetsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * 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("reference", this.getReference()); - 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 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 reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java deleted file mode 100644 index 4554924310b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sheets method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SheetsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SheetsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheets", pathParameters); - } - /** - * Instantiates a new {@link SheetsRequestBuilder} 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 SheetsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheets", rawUrl); - } - /** - * Invoke action sheets - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SheetsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sheets - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SheetsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sheets - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SheetsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sheets - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SheetsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SheetsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SheetsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SheetsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java deleted file mode 100644 index 734d8380a69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign; - -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.serialization.UntypedNode; -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 SignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SignPostRequestBody} and sets the default values. - */ - public SignPostRequestBody() { - 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 SignPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SignPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java deleted file mode 100644 index 6dd81ca033f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sign method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SignRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SignRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sign", pathParameters); - } - /** - * Instantiates a new {@link SignRequestBuilder} 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 SignRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sign", rawUrl); - } - /** - * Invoke action sign - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SignPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sign - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sign - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SignPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sign - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SignPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SignRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SignRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SignRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java deleted file mode 100644 index 218a9380878..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin; - -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.serialization.UntypedNode; -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 SinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinPostRequestBody} and sets the default values. - */ - public SinPostRequestBody() { - 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 SinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java deleted file mode 100644 index 1ce876da9ee..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sin method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sin", pathParameters); - } - /** - * Instantiates a new {@link SinRequestBuilder} 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 SinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sin", rawUrl); - } - /** - * Invoke action sin - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SinPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sin - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SinPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SinPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SinRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java deleted file mode 100644 index 677bf4cc9bd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh; - -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.serialization.UntypedNode; -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 SinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinhPostRequestBody} and sets the default values. - */ - public SinhPostRequestBody() { - 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 SinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinhPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java deleted file mode 100644 index 612ca509c0e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sinh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SinhRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SinhRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sinh", pathParameters); - } - /** - * Instantiates a new {@link SinhRequestBuilder} 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 SinhRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sinh", rawUrl); - } - /** - * Invoke action sinh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SinhPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sinh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SinhPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sinh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SinhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SinhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SinhRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SinhRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java deleted file mode 100644 index c14696f2a2b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew; - -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.serialization.UntypedNode; -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 SkewPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPostRequestBody} and sets the default values. - */ - public SkewPostRequestBody() { - 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 SkewPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java deleted file mode 100644 index 832f1273427..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 skew method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SkewRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SkewRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew", pathParameters); - } - /** - * Instantiates a new {@link SkewRequestBuilder} 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 SkewRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew", rawUrl); - } - /** - * Invoke action skew - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SkewPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action skew - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SkewPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action skew - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SkewPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action skew - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SkewPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SkewRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SkewRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SkewRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java deleted file mode 100644 index 683967c986f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p; - -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.serialization.UntypedNode; -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 SkewPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPPostRequestBody} and sets the default values. - */ - public SkewPPostRequestBody() { - 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 SkewPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java deleted file mode 100644 index 0fcc3c73718..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 skew_p method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SkewPRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SkewPRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew_p", pathParameters); - } - /** - * Instantiates a new {@link SkewPRequestBuilder} 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 SkewPRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew_p", rawUrl); - } - /** - * Invoke action skew_p - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SkewPPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action skew_p - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SkewPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action skew_p - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SkewPPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action skew_p - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SkewPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SkewPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SkewPRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SkewPRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java deleted file mode 100644 index 02ec15470ea..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln; - -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.serialization.UntypedNode; -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 SlnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SlnPostRequestBody} and sets the default values. - */ - public SlnPostRequestBody() { - 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 SlnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SlnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SlnPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java deleted file mode 100644 index fad9004af43..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sln method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SlnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SlnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SlnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sln", pathParameters); - } - /** - * Instantiates a new {@link SlnRequestBuilder} 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 SlnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sln", rawUrl); - } - /** - * Invoke action sln - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SlnPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SlnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sln - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SlnPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SlnPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SlnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SlnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SlnRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java deleted file mode 100644 index 09c9751ba82..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.small; - -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.serialization.UntypedNode; -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 SmallPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SmallPostRequestBody} and sets the default values. - */ - public SmallPostRequestBody() { - 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 SmallPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SmallPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SmallPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java deleted file mode 100644 index 2ea2dfa4f10..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.small; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 small method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SmallRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SmallRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SmallRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/small", pathParameters); - } - /** - * Instantiates a new {@link SmallRequestBuilder} 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 SmallRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/small", rawUrl); - } - /** - * Invoke action small - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SmallPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action small - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SmallPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action small - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SmallPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action small - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SmallPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SmallRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SmallRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SmallRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java deleted file mode 100644 index 5112a80440b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt; - -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.serialization.UntypedNode; -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 SqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPostRequestBody} and sets the default values. - */ - public SqrtPostRequestBody() { - 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 SqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java deleted file mode 100644 index f59366cb6d6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sqrt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SqrtRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SqrtRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrt", pathParameters); - } - /** - * Instantiates a new {@link SqrtRequestBuilder} 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 SqrtRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrt", rawUrl); - } - /** - * Invoke action sqrt - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SqrtPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SqrtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sqrt - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SqrtPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SqrtPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SqrtRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SqrtRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SqrtRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java deleted file mode 100644 index d130263a969..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi; - -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.serialization.UntypedNode; -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 SqrtPiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPiPostRequestBody} and sets the default values. - */ - public SqrtPiPostRequestBody() { - 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 SqrtPiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPiPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java deleted file mode 100644 index ae8f3259d69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sqrtPi method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtPiRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SqrtPiRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SqrtPiRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrtPi", pathParameters); - } - /** - * Instantiates a new {@link SqrtPiRequestBuilder} 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 SqrtPiRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrtPi", rawUrl); - } - /** - * Invoke action sqrtPi - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SqrtPiPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sqrtPi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SqrtPiPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sqrtPi - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SqrtPiPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sqrtPi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SqrtPiPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SqrtPiRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SqrtPiRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SqrtPiRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java deleted file mode 100644 index fed343ae158..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize; - -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.serialization.UntypedNode; -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 StandardizePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StandardizePostRequestBody} and sets the default values. - */ - public StandardizePostRequestBody() { - 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 StandardizePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StandardizePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StandardizePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - 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 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 mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java deleted file mode 100644 index 1d73a0cedab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 standardize method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StandardizeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link StandardizeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public StandardizeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/standardize", pathParameters); - } - /** - * Instantiates a new {@link StandardizeRequestBuilder} 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 StandardizeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/standardize", rawUrl); - } - /** - * Invoke action standardize - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StandardizePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action standardize - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StandardizePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action standardize - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StandardizePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action standardize - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StandardizePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 StandardizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StandardizeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new StandardizeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java deleted file mode 100644 index c7c9355826d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p; - -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.serialization.UntypedNode; -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 StDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPPostRequestBody} and sets the default values. - */ - public StDevPPostRequestBody() { - 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 StDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java deleted file mode 100644 index 028cd15532e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 stDev_P method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link StDevPRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public StDevPRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_P", pathParameters); - } - /** - * Instantiates a new {@link StDevPRequestBuilder} 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 StDevPRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_P", rawUrl); - } - /** - * Invoke action stDev_P - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevPPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action stDev_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action stDev_P - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevPPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action stDev_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 StDevPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevPRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new StDevPRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java deleted file mode 100644 index 0c99624e37f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s; - -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.serialization.UntypedNode; -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 StDevSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevSPostRequestBody} and sets the default values. - */ - public StDevSPostRequestBody() { - 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 StDevSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevSPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java deleted file mode 100644 index 95cbc7ede1a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 stDev_S method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevSRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link StDevSRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public StDevSRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_S", pathParameters); - } - /** - * Instantiates a new {@link StDevSRequestBuilder} 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 StDevSRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_S", rawUrl); - } - /** - * Invoke action stDev_S - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevSPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action stDev_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevSPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action stDev_S - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevSPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action stDev_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevSPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 StDevSRequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevSRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new StDevSRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java deleted file mode 100644 index 78e728c8b8e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva; - -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.serialization.UntypedNode; -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 StDevAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevAPostRequestBody} and sets the default values. - */ - public StDevAPostRequestBody() { - 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 StDevAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java deleted file mode 100644 index 2f099dafda3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 stDevA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link StDevARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public StDevARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevA", pathParameters); - } - /** - * Instantiates a new {@link StDevARequestBuilder} 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 StDevARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevA", rawUrl); - } - /** - * Invoke action stDevA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action stDevA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action stDevA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action stDevA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 StDevARequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new StDevARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java deleted file mode 100644 index 3ab1c8f771d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa; - -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.serialization.UntypedNode; -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 StDevPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPAPostRequestBody} and sets the default values. - */ - public StDevPAPostRequestBody() { - 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 StDevPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java deleted file mode 100644 index 15468afa97b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 stDevPA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link StDevPARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public StDevPARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevPA", pathParameters); - } - /** - * Instantiates a new {@link StDevPARequestBuilder} 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 StDevPARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevPA", rawUrl); - } - /** - * Invoke action stDevPA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevPAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action stDevPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final StDevPAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action stDevPA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevPAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action stDevPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final StDevPAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 StDevPARequestBuilder} - */ - @jakarta.annotation.Nonnull - public StDevPARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new StDevPARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java deleted file mode 100644 index fec47363ed7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute; - -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.serialization.UntypedNode; -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 SubstitutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubstitutePostRequestBody} and sets the default values. - */ - public SubstitutePostRequestBody() { - 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 SubstitutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubstitutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubstitutePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("instanceNum", (n) -> { this.setInstanceNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the instanceNum property value. The instanceNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInstanceNum() { - return this.backingStore.get("instanceNum"); - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("instanceNum", this.getInstanceNum()); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("text", this.getText()); - 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 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 instanceNum property value. The instanceNum property - * @param value Value to set for the instanceNum property. - */ - public void setInstanceNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("instanceNum", value); - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java deleted file mode 100644 index 76890771e1d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 substitute method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubstituteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SubstituteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubstituteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/substitute", pathParameters); - } - /** - * Instantiates a new {@link SubstituteRequestBuilder} 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 SubstituteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/substitute", rawUrl); - } - /** - * Invoke action substitute - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SubstitutePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action substitute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SubstitutePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action substitute - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SubstitutePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action substitute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SubstitutePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubstituteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubstituteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubstituteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java deleted file mode 100644 index 9072c255a2d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal; - -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.serialization.UntypedNode; -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 SubtotalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubtotalPostRequestBody} and sets the default values. - */ - public SubtotalPostRequestBody() { - 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 SubtotalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubtotalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubtotalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("functionNum", (n) -> { this.setFunctionNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the functionNum property value. The functionNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFunctionNum() { - return this.backingStore.get("functionNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("functionNum", this.getFunctionNum()); - writer.writeObjectValue("values", this.getValues()); - 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 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 functionNum property value. The functionNum property - * @param value Value to set for the functionNum property. - */ - public void setFunctionNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("functionNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java deleted file mode 100644 index bf2a9396b10..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 subtotal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubtotalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SubtotalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubtotalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/subtotal", pathParameters); - } - /** - * Instantiates a new {@link SubtotalRequestBuilder} 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 SubtotalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/subtotal", rawUrl); - } - /** - * Invoke action subtotal - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SubtotalPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action subtotal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SubtotalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action subtotal - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SubtotalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action subtotal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SubtotalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubtotalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubtotalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubtotalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java deleted file mode 100644 index 8ad57f63e7e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum; - -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.serialization.UntypedNode; -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 SumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumPostRequestBody} and sets the default values. - */ - public SumPostRequestBody() { - 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 SumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java deleted file mode 100644 index 8679a91f154..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sum", pathParameters); - } - /** - * Instantiates a new {@link SumRequestBuilder} 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 SumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sum", rawUrl); - } - /** - * Invoke action sum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java deleted file mode 100644 index 527d43f2963..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif; - -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.serialization.UntypedNode; -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 SumIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfPostRequestBody} and sets the default values. - */ - public SumIfPostRequestBody() { - 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 SumIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * 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("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeObjectValue("sumRange", this.getSumRange()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } - /** - * Sets the sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java deleted file mode 100644 index 56bbab5a58c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sumIf method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SumIfRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SumIfRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIf", pathParameters); - } - /** - * Instantiates a new {@link SumIfRequestBuilder} 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 SumIfRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIf", rawUrl); - } - /** - * Invoke action sumIf - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumIfPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sumIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sumIf - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumIfPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sumIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumIfPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SumIfRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumIfRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SumIfRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java deleted file mode 100644 index 6a46877ae1d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs; - -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.serialization.UntypedNode; -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 SumIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfsPostRequestBody} and sets the default values. - */ - public SumIfsPostRequestBody() { - 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 SumIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfsPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("sumRange", this.getSumRange()); - writer.writeObjectValue("values", this.getValues()); - 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 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 sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java deleted file mode 100644 index c22bc793d79..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sumIfs method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SumIfsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SumIfsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIfs", pathParameters); - } - /** - * Instantiates a new {@link SumIfsRequestBuilder} 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 SumIfsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIfs", rawUrl); - } - /** - * Invoke action sumIfs - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumIfsPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sumIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sumIfs - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumIfsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sumIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumIfsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SumIfsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumIfsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SumIfsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java deleted file mode 100644 index 65ba61661cd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq; - -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.serialization.UntypedNode; -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 SumSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumSqPostRequestBody} and sets the default values. - */ - public SumSqPostRequestBody() { - 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 SumSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumSqPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java deleted file mode 100644 index 4e0b083e3d6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sumSq method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumSqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SumSqRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SumSqRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumSq", pathParameters); - } - /** - * Instantiates a new {@link SumSqRequestBuilder} 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 SumSqRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumSq", rawUrl); - } - /** - * Invoke action sumSq - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumSqPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action sumSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SumSqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action sumSq - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumSqPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action sumSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SumSqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SumSqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SumSqRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SumSqRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java deleted file mode 100644 index d86d13e6105..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd; - -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.serialization.UntypedNode; -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 SydPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SydPostRequestBody} and sets the default values. - */ - public SydPostRequestBody() { - 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 SydPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SydPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SydPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * 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("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("salvage", this.getSalvage()); - 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 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 cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java deleted file mode 100644 index c93017362c7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 syd method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SydRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SydRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SydRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/syd", pathParameters); - } - /** - * Instantiates a new {@link SydRequestBuilder} 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 SydRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/syd", rawUrl); - } - /** - * Invoke action syd - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SydPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action syd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final SydPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action syd - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SydPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action syd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SydPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SydRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SydRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SydRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java deleted file mode 100644 index 2abe6664319..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t; - -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.serialization.UntypedNode; -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 TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TPostRequestBody} and sets the default values. - */ - public TPostRequestBody() { - 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 TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java deleted file mode 100644 index b7e5ef3ed6f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t", pathParameters); - } - /** - * Instantiates a new {@link TRequestBuilder} 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 TRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t", rawUrl); - } - /** - * Invoke action t - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java deleted file mode 100644 index cae061ee2bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist; - -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.serialization.UntypedNode; -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 TDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistPostRequestBody} and sets the default values. - */ - public TDistPostRequestBody() { - 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 TDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - 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 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 cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java deleted file mode 100644 index a4e242a1366..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist", pathParameters); - } - /** - * Instantiates a new {@link TDistRequestBuilder} 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 TDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist", rawUrl); - } - /** - * Invoke action t_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java deleted file mode 100644 index b5987e4a0a8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t; - -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.serialization.UntypedNode; -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 TDist2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDist2TPostRequestBody} and sets the default values. - */ - public TDist2TPostRequestBody() { - 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 TDist2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDist2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDist2TPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java deleted file mode 100644 index 18955c4d174..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t_Dist_2T method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDist2TRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TDist2TRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TDist2TRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_2T", pathParameters); - } - /** - * Instantiates a new {@link TDist2TRequestBuilder} 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 TDist2TRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_2T", rawUrl); - } - /** - * Invoke action t_Dist_2T - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDist2TPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t_Dist_2T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDist2TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t_Dist_2T - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDist2TPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t_Dist_2T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDist2TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TDist2TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDist2TRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TDist2TRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java deleted file mode 100644 index 0f63082000a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt; - -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.serialization.UntypedNode; -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 TDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistRTPostRequestBody} and sets the default values. - */ - public TDistRTPostRequestBody() { - 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 TDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistRTPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java deleted file mode 100644 index 3665c529d89..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t_Dist_RT method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistRTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TDistRTRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TDistRTRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_RT", pathParameters); - } - /** - * Instantiates a new {@link TDistRTRequestBuilder} 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 TDistRTRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_RT", rawUrl); - } - /** - * Invoke action t_Dist_RT - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDistRTPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t_Dist_RT - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDistRTPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TDistRTPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TDistRTRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TDistRTRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TDistRTRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java deleted file mode 100644 index c33084e7331..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv; - -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.serialization.UntypedNode; -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 TInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInvPostRequestBody} and sets the default values. - */ - public TInvPostRequestBody() { - 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 TInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java deleted file mode 100644 index 74ccba1fc27..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t_Inv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TInvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TInvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv", pathParameters); - } - /** - * Instantiates a new {@link TInvRequestBuilder} 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 TInvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv", rawUrl); - } - /** - * Invoke action t_Inv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TInvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t_Inv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TInvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TInvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TInvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TInvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TInvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java deleted file mode 100644 index f3a7765ab5b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t; - -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.serialization.UntypedNode; -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 TInv2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInv2TPostRequestBody} and sets the default values. - */ - public TInv2TPostRequestBody() { - 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 TInv2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInv2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInv2TPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * 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("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - 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 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 degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java deleted file mode 100644 index cd80c3cb7cf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 t_Inv_2T method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInv2TRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TInv2TRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TInv2TRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv_2T", pathParameters); - } - /** - * Instantiates a new {@link TInv2TRequestBuilder} 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 TInv2TRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv_2T", rawUrl); - } - /** - * Invoke action t_Inv_2T - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TInv2TPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action t_Inv_2T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TInv2TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action t_Inv_2T - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TInv2TPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action t_Inv_2T - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TInv2TPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TInv2TRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TInv2TRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TInv2TRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java deleted file mode 100644 index 9e0e41ce854..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan; - -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.serialization.UntypedNode; -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 TanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanPostRequestBody} and sets the default values. - */ - public TanPostRequestBody() { - 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 TanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java deleted file mode 100644 index a11138b4c8c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tan method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tan", pathParameters); - } - /** - * Instantiates a new {@link TanRequestBuilder} 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 TanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tan", rawUrl); - } - /** - * Invoke action tan - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action tan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action tan - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action tan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java deleted file mode 100644 index 5f6a4ffdadb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh; - -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.serialization.UntypedNode; -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 TanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanhPostRequestBody} and sets the default values. - */ - public TanhPostRequestBody() { - 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 TanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanhPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java deleted file mode 100644 index 17d737c2114..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tanh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TanhRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TanhRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tanh", pathParameters); - } - /** - * Instantiates a new {@link TanhRequestBuilder} 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 TanhRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tanh", rawUrl); - } - /** - * Invoke action tanh - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TanhPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action tanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TanhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action tanh - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TanhPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action tanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TanhPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TanhRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TanhRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TanhRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java deleted file mode 100644 index c21c792b6bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq; - -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.serialization.UntypedNode; -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 TbillEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillEqPostRequestBody} and sets the default values. - */ - public TbillEqPostRequestBody() { - 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 TbillEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillEqPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java deleted file mode 100644 index b43dfd297c9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tbillEq method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillEqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TbillEqRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TbillEqRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillEq", pathParameters); - } - /** - * Instantiates a new {@link TbillEqRequestBuilder} 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 TbillEqRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillEq", rawUrl); - } - /** - * Invoke action tbillEq - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillEqPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action tbillEq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillEqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action tbillEq - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillEqPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action tbillEq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillEqPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TbillEqRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillEqRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TbillEqRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java deleted file mode 100644 index 60acff6f86e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice; - -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.serialization.UntypedNode; -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 TbillPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillPricePostRequestBody} and sets the default values. - */ - public TbillPricePostRequestBody() { - 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 TbillPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillPricePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java deleted file mode 100644 index 1f6f625e6ec..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tbillPrice method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TbillPriceRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TbillPriceRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillPrice", pathParameters); - } - /** - * Instantiates a new {@link TbillPriceRequestBuilder} 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 TbillPriceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillPrice", rawUrl); - } - /** - * Invoke action tbillPrice - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillPricePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action tbillPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action tbillPrice - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillPricePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action tbillPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillPricePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TbillPriceRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillPriceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TbillPriceRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java deleted file mode 100644 index c4237682f97..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield; - -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.serialization.UntypedNode; -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 TbillYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillYieldPostRequestBody} and sets the default values. - */ - public TbillYieldPostRequestBody() { - 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 TbillYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillYieldPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java deleted file mode 100644 index b12ec145a47..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tbillYield method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillYieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TbillYieldRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TbillYieldRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillYield", pathParameters); - } - /** - * Instantiates a new {@link TbillYieldRequestBuilder} 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 TbillYieldRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillYield", rawUrl); - } - /** - * Invoke action tbillYield - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillYieldPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action tbillYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TbillYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action tbillYield - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillYieldPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action tbillYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TbillYieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TbillYieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TbillYieldRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TbillYieldRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java deleted file mode 100644 index 230567d2894..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.text; - -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.serialization.UntypedNode; -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 TextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TextPostRequestBody} and sets the default values. - */ - public TextPostRequestBody() { - 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 TextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TextPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("formatText", (n) -> { this.setFormatText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the formatText property value. The formatText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFormatText() { - return this.backingStore.get("formatText"); - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("formatText", this.getFormatText()); - writer.writeObjectValue("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 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 formatText property value. The formatText property - * @param value Value to set for the formatText property. - */ - public void setFormatText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("formatText", 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java deleted file mode 100644 index e22367e7809..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.text; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 text method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TextRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TextRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/text", pathParameters); - } - /** - * Instantiates a new {@link TextRequestBuilder} 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 TextRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/text", rawUrl); - } - /** - * Invoke action text - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TextPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action text - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action text - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TextPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action text - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TextPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TextRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TextRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TextRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java deleted file mode 100644 index 5dddedfc43f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.time; - -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.serialization.UntypedNode; -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 TimePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimePostRequestBody} and sets the default values. - */ - public TimePostRequestBody() { - 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 TimePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("hour", (n) -> { this.setHour(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("minute", (n) -> { this.setMinute(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("second", (n) -> { this.setSecond(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the hour property value. The hour property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHour() { - return this.backingStore.get("hour"); - } - /** - * Gets the minute property value. The minute property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinute() { - return this.backingStore.get("minute"); - } - /** - * Gets the second property value. The second property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSecond() { - return this.backingStore.get("second"); - } - /** - * 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("hour", this.getHour()); - writer.writeObjectValue("minute", this.getMinute()); - writer.writeObjectValue("second", this.getSecond()); - 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 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 hour property value. The hour property - * @param value Value to set for the hour property. - */ - public void setHour(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("hour", value); - } - /** - * Sets the minute property value. The minute property - * @param value Value to set for the minute property. - */ - public void setMinute(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minute", value); - } - /** - * Sets the second property value. The second property - * @param value Value to set for the second property. - */ - public void setSecond(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("second", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java deleted file mode 100644 index 84b51054e23..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.time; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 time method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TimeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TimeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/time", pathParameters); - } - /** - * Instantiates a new {@link TimeRequestBuilder} 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 TimeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/time", rawUrl); - } - /** - * Invoke action time - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TimePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action time - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TimePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action time - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TimePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action time - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TimePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TimeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TimeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TimeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java deleted file mode 100644 index 184f31038a3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue; - -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.serialization.UntypedNode; -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 TimevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimevaluePostRequestBody} and sets the default values. - */ - public TimevaluePostRequestBody() { - 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 TimevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimevaluePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("timeText", (n) -> { this.setTimeText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the timeText property value. The timeText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTimeText() { - return this.backingStore.get("timeText"); - } - /** - * 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("timeText", this.getTimeText()); - 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 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 timeText property value. The timeText property - * @param value Value to set for the timeText property. - */ - public void setTimeText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("timeText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java deleted file mode 100644 index 09368669bcc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 timevalue method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimevalueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TimevalueRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TimevalueRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/timevalue", pathParameters); - } - /** - * Instantiates a new {@link TimevalueRequestBuilder} 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 TimevalueRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/timevalue", rawUrl); - } - /** - * Invoke action timevalue - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TimevaluePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action timevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TimevaluePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action timevalue - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TimevaluePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action timevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TimevaluePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TimevalueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TimevalueRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TimevalueRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java deleted file mode 100644 index 8e102363b94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.today; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 today method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TodayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TodayRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TodayRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/today", pathParameters); - } - /** - * Instantiates a new {@link TodayRequestBuilder} 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 TodayRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/today", rawUrl); - } - /** - * Invoke action today - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action today - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action today - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action today - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 TodayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TodayRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TodayRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java deleted file mode 100644 index ca194913178..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim; - -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.serialization.UntypedNode; -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 TrimPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimPostRequestBody} and sets the default values. - */ - public TrimPostRequestBody() { - 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 TrimPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java deleted file mode 100644 index de854ad3003..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 trim method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TrimRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TrimRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trim", pathParameters); - } - /** - * Instantiates a new {@link TrimRequestBuilder} 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 TrimRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trim", rawUrl); - } - /** - * Invoke action trim - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TrimPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action trim - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TrimPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action trim - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TrimPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action trim - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TrimPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TrimRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrimRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TrimRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java deleted file mode 100644 index 109fad36691..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean; - -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.serialization.UntypedNode; -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 TrimMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimMeanPostRequestBody} and sets the default values. - */ - public TrimMeanPostRequestBody() { - 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 TrimMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimMeanPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPercent() { - return this.backingStore.get("percent"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("percent", this.getPercent()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java deleted file mode 100644 index 493511fccae..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 trimMean method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimMeanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TrimMeanRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TrimMeanRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trimMean", pathParameters); - } - /** - * Instantiates a new {@link TrimMeanRequestBuilder} 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 TrimMeanRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trimMean", rawUrl); - } - /** - * Invoke action trimMean - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TrimMeanPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action trimMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TrimMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action trimMean - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TrimMeanPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action trimMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TrimMeanPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TrimMeanRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrimMeanRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TrimMeanRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java deleted file mode 100644 index 98d2f52ffb5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trueescaped; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 true method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TrueRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TrueRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/true", pathParameters); - } - /** - * Instantiates a new {@link TrueRequestBuilder} 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 TrueRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/true", rawUrl); - } - /** - * Invoke action true - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post() { - return post(null); - } - /** - * Invoke action true - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action true - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action true - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 TrueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TrueRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TrueRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java deleted file mode 100644 index b114293ddf4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc; - -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.serialization.UntypedNode; -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 TruncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TruncPostRequestBody} and sets the default values. - */ - public TruncPostRequestBody() { - 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 TruncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TruncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TruncPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * 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("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java deleted file mode 100644 index c8313304fdb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 trunc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TruncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TruncRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TruncRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trunc", pathParameters); - } - /** - * Instantiates a new {@link TruncRequestBuilder} 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 TruncRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trunc", rawUrl); - } - /** - * Invoke action trunc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TruncPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action trunc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TruncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action trunc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TruncPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action trunc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TruncPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TruncRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TruncRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TruncRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java deleted file mode 100644 index e8f2a0be28d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.type; - -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.serialization.UntypedNode; -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 TypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TypePostRequestBody} and sets the default values. - */ - public TypePostRequestBody() { - 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 TypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TypePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode 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.writeObjectValue("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 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 UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java deleted file mode 100644 index 2f0b4729f3e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.type; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 type method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TypeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TypeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TypeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/type", pathParameters); - } - /** - * Instantiates a new {@link TypeRequestBuilder} 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 TypeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/type", rawUrl); - } - /** - * Invoke action type - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TypePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final TypePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action type - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TypePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TypePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TypeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TypeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TypeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java deleted file mode 100644 index 6f340e06fcd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar; - -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.serialization.UntypedNode; -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 UnicharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicharPostRequestBody} and sets the default values. - */ - public UnicharPostRequestBody() { - 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 UnicharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicharPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("number", this.getNumber()); - 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 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 number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java deleted file mode 100644 index 8ab2e89e437..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 unichar method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicharRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UnicharRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UnicharRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unichar", pathParameters); - } - /** - * Instantiates a new {@link UnicharRequestBuilder} 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 UnicharRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unichar", rawUrl); - } - /** - * Invoke action unichar - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UnicharPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action unichar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UnicharPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action unichar - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UnicharPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action unichar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UnicharPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 UnicharRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnicharRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UnicharRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java deleted file mode 100644 index c4094b7c0b2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode; - -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.serialization.UntypedNode; -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 UnicodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicodePostRequestBody} and sets the default values. - */ - public UnicodePostRequestBody() { - 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 UnicodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicodePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java deleted file mode 100644 index ac0dc8853cc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 unicode method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicodeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UnicodeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UnicodeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unicode", pathParameters); - } - /** - * Instantiates a new {@link UnicodeRequestBuilder} 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 UnicodeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unicode", rawUrl); - } - /** - * Invoke action unicode - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UnicodePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action unicode - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UnicodePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action unicode - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UnicodePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action unicode - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UnicodePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 UnicodeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnicodeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UnicodeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java deleted file mode 100644 index 9a0168e1cfd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper; - -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.serialization.UntypedNode; -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 UpperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UpperPostRequestBody} and sets the default values. - */ - public UpperPostRequestBody() { - 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 UpperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UpperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UpperPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java deleted file mode 100644 index d61dd5bac0e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 upper method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UpperRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UpperRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UpperRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/upper", pathParameters); - } - /** - * Instantiates a new {@link UpperRequestBuilder} 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 UpperRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/upper", rawUrl); - } - /** - * Invoke action upper - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UpperPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action upper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UpperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action upper - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UpperPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action upper - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UpperPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 UpperRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UpperRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UpperRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java deleted file mode 100644 index 3e98ceacbd1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar; - -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.serialization.UntypedNode; -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 UsdollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UsdollarPostRequestBody} and sets the default values. - */ - public UsdollarPostRequestBody() { - 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 UsdollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UsdollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UsdollarPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * 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("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - 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 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 decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java deleted file mode 100644 index 16859375b8d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 usdollar method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UsdollarRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UsdollarRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UsdollarRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/usdollar", pathParameters); - } - /** - * Instantiates a new {@link UsdollarRequestBuilder} 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 UsdollarRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/usdollar", rawUrl); - } - /** - * Invoke action usdollar - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UsdollarPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action usdollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final UsdollarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action usdollar - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UsdollarPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action usdollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final UsdollarPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 UsdollarRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsdollarRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UsdollarRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java deleted file mode 100644 index dff215ea857..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.value; - -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.serialization.UntypedNode; -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 ValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ValuePostRequestBody} and sets the default values. - */ - public ValuePostRequestBody() { - 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 ValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ValuePostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * 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("text", this.getText()); - 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 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 text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java deleted file mode 100644 index 3f630ebcb2e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.value; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 value method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ValueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ValueRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ValueRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/value", pathParameters); - } - /** - * Instantiates a new {@link ValueRequestBuilder} 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 ValueRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/value", rawUrl); - } - /** - * Invoke action value - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ValuePostRequestBody body) { - return post(body, null); - } - /** - * Invoke action value - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ValuePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action value - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValuePostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action value - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValuePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ValueRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValueRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ValueRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java deleted file mode 100644 index 11320d6a742..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p; - -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.serialization.UntypedNode; -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 VarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPPostRequestBody} and sets the default values. - */ - public VarPPostRequestBody() { - 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 VarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java deleted file mode 100644 index a8018874bf4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 var_P method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VarPRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VarPRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_P", pathParameters); - } - /** - * Instantiates a new {@link VarPRequestBuilder} 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 VarPRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_P", rawUrl); - } - /** - * Invoke action var_P - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarPPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action var_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action var_P - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarPPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action var_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarPPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VarPRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarPRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VarPRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java deleted file mode 100644 index 85947ccd121..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s; - -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.serialization.UntypedNode; -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 VarSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarSPostRequestBody} and sets the default values. - */ - public VarSPostRequestBody() { - 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 VarSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarSPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java deleted file mode 100644 index 51b7f3023f8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 var_S method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarSRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VarSRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VarSRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_S", pathParameters); - } - /** - * Instantiates a new {@link VarSRequestBuilder} 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 VarSRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_S", rawUrl); - } - /** - * Invoke action var_S - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarSPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action var_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarSPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action var_S - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarSPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action var_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarSPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VarSRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarSRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VarSRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java deleted file mode 100644 index dca0604456f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara; - -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.serialization.UntypedNode; -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 VarAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarAPostRequestBody} and sets the default values. - */ - public VarAPostRequestBody() { - 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 VarAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java deleted file mode 100644 index f39ca3e9fe0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 varA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VarARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VarARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varA", pathParameters); - } - /** - * Instantiates a new {@link VarARequestBuilder} 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 VarARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varA", rawUrl); - } - /** - * Invoke action varA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action varA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action varA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action varA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VarARequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VarARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java deleted file mode 100644 index ca9344be373..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa; - -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.serialization.UntypedNode; -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 VarPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPAPostRequestBody} and sets the default values. - */ - public VarPAPostRequestBody() { - 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 VarPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPAPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java deleted file mode 100644 index 6da5ee3c40b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 varPA method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VarPARequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VarPARequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varPA", pathParameters); - } - /** - * Instantiates a new {@link VarPARequestBuilder} 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 VarPARequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varPA", rawUrl); - } - /** - * Invoke action varPA - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarPAPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action varPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VarPAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action varPA - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarPAPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action varPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VarPAPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VarPARequestBuilder} - */ - @jakarta.annotation.Nonnull - public VarPARequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VarPARequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java deleted file mode 100644 index ee451f0a766..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb; - -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.serialization.UntypedNode; -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 VdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VdbPostRequestBody} and sets the default values. - */ - public VdbPostRequestBody() { - 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 VdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VdbPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noSwitch", (n) -> { this.setNoSwitch(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the noSwitch property value. The noSwitch property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoSwitch() { - return this.backingStore.get("noSwitch"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * 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("cost", this.getCost()); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("noSwitch", this.getNoSwitch()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - 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 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 cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the noSwitch property value. The noSwitch property - * @param value Value to set for the noSwitch property. - */ - public void setNoSwitch(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noSwitch", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java deleted file mode 100644 index cfce32949c2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 vdb method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VdbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VdbRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VdbRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vdb", pathParameters); - } - /** - * Instantiates a new {@link VdbRequestBuilder} 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 VdbRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vdb", rawUrl); - } - /** - * Invoke action vdb - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VdbPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action vdb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VdbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action vdb - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VdbPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action vdb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VdbPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VdbRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VdbRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VdbRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java deleted file mode 100644 index 31a06e1f218..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup; - -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.serialization.UntypedNode; -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 VlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VlookupPostRequestBody} and sets the default values. - */ - public VlookupPostRequestBody() { - 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 VlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VlookupPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the colIndexNum property value. The colIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getColIndexNum() { - return this.backingStore.get("colIndexNum"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("colIndexNum", (n) -> { this.setColIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * 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("colIndexNum", this.getColIndexNum()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("tableArray", this.getTableArray()); - 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 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 colIndexNum property value. The colIndexNum property - * @param value Value to set for the colIndexNum property. - */ - public void setColIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("colIndexNum", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java deleted file mode 100644 index 08c14070db6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 vlookup method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VlookupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link VlookupRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VlookupRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vlookup", pathParameters); - } - /** - * Instantiates a new {@link VlookupRequestBuilder} 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 VlookupRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vlookup", rawUrl); - } - /** - * Invoke action vlookup - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VlookupPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action vlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final VlookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action vlookup - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VlookupPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action vlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VlookupPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VlookupRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VlookupRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VlookupRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java deleted file mode 100644 index 350e44d7b17..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday; - -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.serialization.UntypedNode; -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 WeekdayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekdayPostRequestBody} and sets the default values. - */ - public WeekdayPostRequestBody() { - 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 WeekdayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekdayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekdayPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - 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 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 returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java deleted file mode 100644 index 8acfbff1a7c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 weekday method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekdayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WeekdayRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WeekdayRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekday", pathParameters); - } - /** - * Instantiates a new {@link WeekdayRequestBuilder} 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 WeekdayRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekday", rawUrl); - } - /** - * Invoke action weekday - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeekdayPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action weekday - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeekdayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action weekday - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeekdayPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action weekday - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeekdayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WeekdayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeekdayRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WeekdayRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java deleted file mode 100644 index dd97d12cf49..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum; - -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.serialization.UntypedNode; -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 WeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekNumPostRequestBody} and sets the default values. - */ - public WeekNumPostRequestBody() { - 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 WeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekNumPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - 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 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 returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java deleted file mode 100644 index 47c4a610ea4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 weekNum method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WeekNumRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WeekNumRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekNum", pathParameters); - } - /** - * Instantiates a new {@link WeekNumRequestBuilder} 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 WeekNumRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekNum", rawUrl); - } - /** - * Invoke action weekNum - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeekNumPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action weekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeekNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action weekNum - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeekNumPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action weekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeekNumPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WeekNumRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeekNumRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WeekNumRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java deleted file mode 100644 index 9c04749ba2d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist; - -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.serialization.UntypedNode; -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 WeibullDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeibullDistPostRequestBody} and sets the default values. - */ - public WeibullDistPostRequestBody() { - 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 WeibullDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeibullDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeibullDistPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", 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 beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java deleted file mode 100644 index 19592abd293..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 weibull_Dist method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeibullDistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WeibullDistRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WeibullDistRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weibull_Dist", pathParameters); - } - /** - * Instantiates a new {@link WeibullDistRequestBuilder} 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 WeibullDistRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weibull_Dist", rawUrl); - } - /** - * Invoke action weibull_Dist - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeibullDistPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action weibull_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WeibullDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action weibull_Dist - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeibullDistPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action weibull_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WeibullDistPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WeibullDistRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WeibullDistRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WeibullDistRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java deleted file mode 100644 index 08392a69e58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday; - -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.serialization.UntypedNode; -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 WorkDayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayPostRequestBody} and sets the default values. - */ - public WorkDayPostRequestBody() { - 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 WorkDayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java deleted file mode 100644 index 922cc971622..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 workDay method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkDayRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkDayRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay", pathParameters); - } - /** - * Instantiates a new {@link WorkDayRequestBuilder} 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 WorkDayRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay", rawUrl); - } - /** - * Invoke action workDay - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WorkDayPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action workDay - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WorkDayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action workDay - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkDayPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action workDay - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkDayPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkDayRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkDayRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkDayRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java deleted file mode 100644 index d2418b72455..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl; - -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.serialization.UntypedNode; -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 WorkDayIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayIntlPostRequestBody} and sets the default values. - */ - public WorkDayIntlPostRequestBody() { - 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 WorkDayIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayIntlPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * 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("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - 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 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 days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java deleted file mode 100644 index 9b64a1cd043..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 workDay_Intl method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayIntlRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkDayIntlRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkDayIntlRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay_Intl", pathParameters); - } - /** - * Instantiates a new {@link WorkDayIntlRequestBuilder} 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 WorkDayIntlRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay_Intl", rawUrl); - } - /** - * Invoke action workDay_Intl - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WorkDayIntlPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action workDay_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final WorkDayIntlPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action workDay_Intl - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkDayIntlPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action workDay_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkDayIntlPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkDayIntlRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkDayIntlRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkDayIntlRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java deleted file mode 100644 index 4888d79f014..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr; - -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.serialization.UntypedNode; -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 XirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XirrPostRequestBody} and sets the default values. - */ - public XirrPostRequestBody() { - 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 XirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XirrPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("dates", this.getDates()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - 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 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 dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java deleted file mode 100644 index bfe9a01b458..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 xirr method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XirrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link XirrRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public XirrRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xirr", pathParameters); - } - /** - * Instantiates a new {@link XirrRequestBuilder} 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 XirrRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xirr", rawUrl); - } - /** - * Invoke action xirr - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XirrPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action xirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XirrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action xirr - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XirrPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action xirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XirrPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 XirrRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XirrRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new XirrRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java deleted file mode 100644 index 7670cc575f5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv; - -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.serialization.UntypedNode; -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 XnpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XnpvPostRequestBody} and sets the default values. - */ - public XnpvPostRequestBody() { - 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 XnpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XnpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XnpvPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("dates", this.getDates()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - 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 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 dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java deleted file mode 100644 index 7ef3274ba65..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 xnpv method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XnpvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link XnpvRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public XnpvRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xnpv", pathParameters); - } - /** - * Instantiates a new {@link XnpvRequestBuilder} 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 XnpvRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xnpv", rawUrl); - } - /** - * Invoke action xnpv - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XnpvPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action xnpv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XnpvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action xnpv - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XnpvPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action xnpv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XnpvPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 XnpvRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XnpvRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new XnpvRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java deleted file mode 100644 index d44015978b6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor; - -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.serialization.UntypedNode; -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 XorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XorPostRequestBody} and sets the default values. - */ - public XorPostRequestBody() { - 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 XorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java deleted file mode 100644 index f9f69169326..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 xor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link XorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public XorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xor", pathParameters); - } - /** - * Instantiates a new {@link XorRequestBuilder} 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 XorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xor", rawUrl); - } - /** - * Invoke action xor - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XorPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action xor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final XorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action xor - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action xor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final XorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 XorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public XorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new XorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java deleted file mode 100644 index 73750e2cbde..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.year; - -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.serialization.UntypedNode; -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 YearPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearPostRequestBody} and sets the default values. - */ - public YearPostRequestBody() { - 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 YearPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * 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("serialNumber", this.getSerialNumber()); - 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 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 serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java deleted file mode 100644 index d17c98fe254..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.year; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 year method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link YearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public YearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/year", pathParameters); - } - /** - * Instantiates a new {@link YearRequestBuilder} 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 YearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/year", rawUrl); - } - /** - * Invoke action year - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YearPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action year - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YearPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action year - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YearPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action year - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YearPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 YearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new YearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java deleted file mode 100644 index 72da10f0619..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac; - -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.serialization.UntypedNode; -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 YearFracPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearFracPostRequestBody} and sets the default values. - */ - public YearFracPostRequestBody() { - 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 YearFracPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearFracPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearFracPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java deleted file mode 100644 index dccbaa01dab..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 yearFrac method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearFracRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link YearFracRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public YearFracRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yearFrac", pathParameters); - } - /** - * Instantiates a new {@link YearFracRequestBuilder} 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 YearFracRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yearFrac", rawUrl); - } - /** - * Invoke action yearFrac - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YearFracPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action yearFrac - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YearFracPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action yearFrac - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YearFracPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action yearFrac - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YearFracPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 YearFracRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YearFracRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new YearFracRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java deleted file mode 100644 index 1b312309cfd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield; - -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.serialization.UntypedNode; -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 YieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldPostRequestBody} and sets the default values. - */ - public YieldPostRequestBody() { - 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 YieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java deleted file mode 100644 index f836eb84fc8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 yield method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link YieldRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public YieldRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yield", pathParameters); - } - /** - * Instantiates a new {@link YieldRequestBuilder} 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 YieldRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yield", rawUrl); - } - /** - * Invoke action yield - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action yield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action yield - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action yield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 YieldRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new YieldRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java deleted file mode 100644 index c1189cf81f2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc; - -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.serialization.UntypedNode; -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 YieldDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldDiscPostRequestBody} and sets the default values. - */ - public YieldDiscPostRequestBody() { - 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 YieldDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldDiscPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java deleted file mode 100644 index dbcfb4aa57d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 yieldDisc method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldDiscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link YieldDiscRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public YieldDiscRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldDisc", pathParameters); - } - /** - * Instantiates a new {@link YieldDiscRequestBuilder} 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 YieldDiscRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldDisc", rawUrl); - } - /** - * Invoke action yieldDisc - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldDiscPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action yieldDisc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldDiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action yieldDisc - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldDiscPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action yieldDisc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldDiscPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 YieldDiscRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldDiscRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new YieldDiscRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java deleted file mode 100644 index a1058d73ce9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat; - -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.serialization.UntypedNode; -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 YieldMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldMatPostRequestBody} and sets the default values. - */ - public YieldMatPostRequestBody() { - 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 YieldMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldMatPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * 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("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - 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 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 basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java deleted file mode 100644 index 243566131e7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 yieldMat method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldMatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link YieldMatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public YieldMatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldMat", pathParameters); - } - /** - * Instantiates a new {@link YieldMatRequestBuilder} 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 YieldMatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldMat", rawUrl); - } - /** - * Invoke action yieldMat - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldMatPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action yieldMat - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final YieldMatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action yieldMat - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldMatPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action yieldMat - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final YieldMatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 YieldMatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public YieldMatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new YieldMatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java deleted file mode 100644 index 3808881af7a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test; - -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.serialization.UntypedNode; -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 ZTestPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ZTestPostRequestBody} and sets the default values. - */ - public ZTestPostRequestBody() { - 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 ZTestPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ZTestPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ZTestPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sigma", (n) -> { this.setSigma(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sigma property value. The sigma property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSigma() { - return this.backingStore.get("sigma"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * 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("array", this.getArray()); - writer.writeObjectValue("sigma", this.getSigma()); - writer.writeObjectValue("x", this.getX()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", 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 sigma property value. The sigma property - * @param value Value to set for the sigma property. - */ - public void setSigma(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sigma", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java deleted file mode 100644 index 788e0c9412a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 z_Test method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ZTestRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ZTestRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ZTestRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/z_Test", pathParameters); - } - /** - * Instantiates a new {@link ZTestRequestBuilder} 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 ZTestRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/z_Test", rawUrl); - } - /** - * Invoke action z_Test - * @param body The request body - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ZTestPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action z_Test - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFunctionResult} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFunctionResult post(@jakarta.annotation.Nonnull final ZTestPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFunctionResult::createFromDiscriminatorValue); - } - /** - * Invoke action z_Test - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ZTestPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action z_Test - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ZTestPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ZTestRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ZTestRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ZTestRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java deleted file mode 100644 index f3c3e69d542..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.graph.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item.WorkbookNamedItemItemRequestBuilder; -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 manage the names property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NamesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the addFormulaLocal method. - * @return a {@link AddFormulaLocalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddFormulaLocalRequestBuilder addFormulaLocal() { - return new AddFormulaLocalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the names property of the microsoft.graph.workbook entity. - * @param workbookNamedItemId The unique identifier of workbookNamedItem - * @return a {@link WorkbookNamedItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookNamedItemItemRequestBuilder byWorkbookNamedItemId(@jakarta.annotation.Nonnull final String workbookNamedItemId) { - Objects.requireNonNull(workbookNamedItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookNamedItem%2Did", workbookNamedItemId); - return new WorkbookNamedItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link NamesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NamesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link NamesRequestBuilder} 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 NamesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @return a {@link WorkbookNamedItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItemCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return post(body, null); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @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 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; - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NamesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NamesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NamesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java deleted file mode 100644 index 02b9b205535..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * 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.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - 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 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 comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java deleted file mode 100644 index 046588a3df5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/add", rawUrl); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index a67fa501532..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.addformulalocal; - -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 AddFormulaLocalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddFormulaLocalPostRequestBody} and sets the default values. - */ - public AddFormulaLocalPostRequestBody() { - 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 AddFormulaLocalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddFormulaLocalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddFormulaLocalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("formula", (n) -> { this.setFormula(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the formula property value. The formula property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getFormula() { - return this.backingStore.get("formula"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * 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.writeStringValue("comment", this.getComment()); - writer.writeStringValue("formula", this.getFormula()); - writer.writeStringValue("name", this.getName()); - 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 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 comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the formula property value. The formula property - * @param value Value to set for the formula property. - */ - public void setFormula(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("formula", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index b3ecb99bdd7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.addformulalocal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 addFormulaLocal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddFormulaLocalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddFormulaLocalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddFormulaLocalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/addFormulaLocal", pathParameters); - } - /** - * Instantiates a new {@link AddFormulaLocalRequestBuilder} 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 AddFormulaLocalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/addFormulaLocal", rawUrl); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddFormulaLocalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddFormulaLocalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddFormulaLocalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java deleted file mode 100644 index 5a86af74c15..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index 820ea2ba429..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item.worksheet.WorksheetRequestBuilder; -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 manage the names property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookNamedItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookNamedItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookNamedItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookNamedItemItemRequestBuilder} 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 WorkbookNamedItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property names for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property names for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem get() { - return get(null); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem patch(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return patch(body, null); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem patch(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Delete navigation property names for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property names for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - * @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 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; - } - /** - * Update the navigation property names in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookNamedItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookNamedItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookNamedItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index 77c5125c65c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 941aa625b94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookNamedItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java deleted file mode 100644 index fed96deac7d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.operations; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookOperation; -import com.microsoft.graph.models.WorkbookOperationCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.operations.item.WorkbookOperationItemRequestBuilder; -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 manage the operations property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the operations property of the microsoft.graph.workbook entity. - * @param workbookOperationId The unique identifier of workbookOperation - * @return a {@link WorkbookOperationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookOperationItemRequestBuilder byWorkbookOperationId(@jakarta.annotation.Nonnull final String workbookOperationId) { - Objects.requireNonNull(workbookOperationId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookOperation%2Did", workbookOperationId); - return new WorkbookOperationItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} 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 OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @return a {@link WorkbookOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperationCollectionResponse get() { - return get(null); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation post(@jakarta.annotation.Nonnull final WorkbookOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation post(@jakarta.annotation.Nonnull final WorkbookOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookOperation::createFromDiscriminatorValue); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @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 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; - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java deleted file mode 100644 index 1ae4d927909..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.operations.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookOperation; -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 manage the operations property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookOperationItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookOperationItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookOperationItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookOperationItemRequestBuilder} 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 WorkbookOperationItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property operations for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property operations for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation get() { - return get(null); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookOperation::createFromDiscriminatorValue); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation patch(@jakarta.annotation.Nonnull final WorkbookOperation body) { - return patch(body, null); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookOperation patch(@jakarta.annotation.Nonnull final WorkbookOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookOperation::createFromDiscriminatorValue); - } - /** - * Delete navigation property operations for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property operations for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - * @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 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; - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookOperation body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookOperationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookOperationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookOperationItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java deleted file mode 100644 index 4d7451813d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.refreshsession; - -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.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 refreshSession method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RefreshSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RefreshSessionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RefreshSessionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/refreshSession", pathParameters); - } - /** - * Instantiates a new {@link RefreshSessionRequestBuilder} 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 RefreshSessionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/refreshSession", rawUrl); - } - /** - * Use this API to refresh an existing workbook session. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Use this API to refresh an existing workbook session. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Use this API to refresh an existing workbook session. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Use this API to refresh an existing workbook session. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RefreshSessionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshSessionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RefreshSessionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java deleted file mode 100644 index cddea0135e3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.sessioninforesourcewithkey; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookSessionInfo; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 sessionInfoResource method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SessionInfoResourceWithKeyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SessionInfoResourceWithKeyRequestBuilder} and sets the default values. - * @param key Usage: key='{key}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SessionInfoResourceWithKeyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String key) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/sessionInfoResource(key='{key}')", pathParameters); - this.pathParameters.put("key", key); - } - /** - * Instantiates a new {@link SessionInfoResourceWithKeyRequestBuilder} 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 SessionInfoResourceWithKeyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/sessionInfoResource(key='{key}')", rawUrl); - } - /** - * Invoke function sessionInfoResource - * @return a {@link WorkbookSessionInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookSessionInfo get() { - return get(null); - } - /** - * Invoke function sessionInfoResource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookSessionInfo} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookSessionInfo get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookSessionInfo::createFromDiscriminatorValue); - } - /** - * Invoke function sessionInfoResource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function sessionInfoResource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 SessionInfoResourceWithKeyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SessionInfoResourceWithKeyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SessionInfoResourceWithKeyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java deleted file mode 100644 index 90847a27012..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tablerowoperationresultwithkey; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 tableRowOperationResult method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TableRowOperationResultWithKeyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TableRowOperationResultWithKeyRequestBuilder} and sets the default values. - * @param key Usage: key='{key}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TableRowOperationResultWithKeyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String key) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", pathParameters); - this.pathParameters.put("key", key); - } - /** - * Instantiates a new {@link TableRowOperationResultWithKeyRequestBuilder} 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 TableRowOperationResultWithKeyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", rawUrl); - } - /** - * This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TableRowOperationResultWithKeyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TableRowOperationResultWithKeyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TableRowOperationResultWithKeyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java deleted file mode 100644 index 472a46c4898..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the tables property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TablesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the tables property of the microsoft.graph.workbook entity. - * @param workbookTableId The unique identifier of workbookTable - * @return a {@link WorkbookTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableItemRequestBuilder byWorkbookTableId(@jakarta.annotation.Nonnull final String workbookTableId) { - Objects.requireNonNull(workbookTableId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTable%2Did", workbookTableId); - return new WorkbookTableItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link TablesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TablesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TablesRequestBuilder} 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 TablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @return a {@link WorkbookTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body) { - return post(body, null); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @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 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; - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TablesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java deleted file mode 100644 index 3430f1f3bf2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.add; - -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the address property value. The address property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getAddress() { - return this.backingStore.get("address"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("address", (n) -> { this.setAddress(n.getStringValue()); }); - deserializerMap.put("hasHeaders", (n) -> { this.setHasHeaders(n.getBooleanValue()); }); - return deserializerMap; - } - /** - * Gets the hasHeaders property value. The hasHeaders property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getHasHeaders() { - return this.backingStore.get("hasHeaders"); - } - /** - * 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.writeStringValue("address", this.getAddress()); - writer.writeBooleanValue("hasHeaders", this.getHasHeaders()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the address property value. The address property - * @param value Value to set for the address property. - */ - public void setAddress(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("address", 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 hasHeaders property value. The hasHeaders property - * @param value Value to set for the hasHeaders property. - */ - public void setHasHeaders(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("hasHeaders", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java deleted file mode 100644 index ea3b20b4878..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java deleted file mode 100644 index 34e6f6727db..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java deleted file mode 100644 index 9ade6ab50db..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index 5056b608210..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.worksheet.WorksheetRequestBuilder; -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 manage the tables property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clearFilters method. - * @return a {@link ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder clearFilters() { - return new ClearFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the convertToRange method. - * @return a {@link ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder convertToRange() { - return new ConvertToRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapplyFilters method. - * @return a {@link ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder reapplyFilters() { - return new ReapplyFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @return a {@link RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder rows() { - return new RowsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. - * @return a {@link SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder sort() { - return new SortRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableItemRequestBuilder} 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 WorkbookTableItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property tables for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property tables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get() { - return get(null); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable patch(@jakarta.annotation.Nonnull final WorkbookTable body) { - return patch(body, null); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable patch(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Delete navigation property tables for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property tables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - * @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 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; - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of tables associated with the workbook. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index da2dcd58749..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.clearfilters; - -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.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 clearFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", pathParameters); - } - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} 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 ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", rawUrl); - } - /** - * Clears all the filters currently applied on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears all the filters currently applied on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears all the filters currently applied on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears all the filters currently applied on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index a20a21041f8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @param workbookTableColumnId The unique identifier of workbookTableColumn - * @return a {@link WorkbookTableColumnItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableColumnItemRequestBuilder byWorkbookTableColumnId(@jakarta.annotation.Nonnull final String workbookTableColumnId) { - Objects.requireNonNull(workbookTableColumnId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTableColumn%2Did", workbookTableColumnId); - return new WorkbookTableColumnItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumnCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index 5da6b3cd2a8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - 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 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 index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index d45b11992e4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", rawUrl); - } - /** - * Adds a new column to the table. - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Adds a new column to the table. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index fb1d5c3de4c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 52e8a324baa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index a2bd0e78f1e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.totalrowrange.TotalRowRangeRequestBuilder; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableColumnItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. - * @return a {@link FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder filter() { - return new FilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableColumnItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableColumnItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableColumnItemRequestBuilder} 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 WorkbookTableColumnItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property columns for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn patch(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return patch(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn patch(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Delete navigation property columns for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableColumnItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableColumnItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 9989a54e3ac..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index b2db2e6d6cf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFilter; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.clear.ClearRequestBuilder; -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 manage the filter property of the microsoft.graph.workbookTableColumn entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FilterRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the apply method. - * @return a {@link ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder apply() { - return new ApplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyBottomItemsFilter method. - * @return a {@link ApplyBottomItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomItemsFilterRequestBuilder applyBottomItemsFilter() { - return new ApplyBottomItemsFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyBottomPercentFilter method. - * @return a {@link ApplyBottomPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomPercentFilterRequestBuilder applyBottomPercentFilter() { - return new ApplyBottomPercentFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyCellColorFilter method. - * @return a {@link ApplyCellColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCellColorFilterRequestBuilder applyCellColorFilter() { - return new ApplyCellColorFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyCustomFilter method. - * @return a {@link ApplyCustomFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCustomFilterRequestBuilder applyCustomFilter() { - return new ApplyCustomFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyDynamicFilter method. - * @return a {@link ApplyDynamicFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyDynamicFilterRequestBuilder applyDynamicFilter() { - return new ApplyDynamicFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyFontColorFilter method. - * @return a {@link ApplyFontColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyFontColorFilterRequestBuilder applyFontColorFilter() { - return new ApplyFontColorFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyIconFilter method. - * @return a {@link ApplyIconFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyIconFilterRequestBuilder applyIconFilter() { - return new ApplyIconFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyTopItemsFilter method. - * @return a {@link ApplyTopItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopItemsFilterRequestBuilder applyTopItemsFilter() { - return new ApplyTopItemsFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyTopPercentFilter method. - * @return a {@link ApplyTopPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopPercentFilterRequestBuilder applyTopPercentFilter() { - return new ApplyTopPercentFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyValuesFilter method. - * @return a {@link ApplyValuesFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyValuesFilterRequestBuilder applyValuesFilter() { - return new ApplyValuesFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FilterRequestBuilder} 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 FilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property filter for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get() { - return get(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return patch(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Delete navigation property filter for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @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 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; - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Retrieve the filter applied to the column. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index 7dcca8fd0af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.models.WorkbookFilterCriteria; -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 ApplyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyPostRequestBody} and sets the default values. - */ - public ApplyPostRequestBody() { - 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 ApplyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link WorkbookFilterCriteria} - */ - @jakarta.annotation.Nullable - public WorkbookFilterCriteria getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(WorkbookFilterCriteria::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final WorkbookFilterCriteria value) { - this.backingStore.set("criteria", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index d480c1746e6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -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.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 apply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", pathParameters); - } - /** - * Instantiates a new {@link ApplyRequestBuilder} 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 ApplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - post(body, null); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index eb0d3e7a971..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter; - -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 ApplyBottomItemsFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyBottomItemsFilterPostRequestBody} and sets the default values. - */ - public ApplyBottomItemsFilterPostRequestBody() { - 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 ApplyBottomItemsFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyBottomItemsFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyBottomItemsFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the count property value. The count property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getCount() { - return this.backingStore.get("count"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("count", (n) -> { this.setCount(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * 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.writeIntegerValue("count", this.getCount()); - 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 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 count property value. The count property - * @param value Value to set for the count property. - */ - public void setCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("count", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index 19b9a344225..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter; - -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.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 applyBottomItemsFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyBottomItemsFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyBottomItemsFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyBottomItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyBottomItemsFilterRequestBuilder} 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 ApplyBottomItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", rawUrl); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyBottomItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomItemsFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyBottomItemsFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index f9acaea35f5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter; - -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 ApplyBottomPercentFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyBottomPercentFilterPostRequestBody} and sets the default values. - */ - public ApplyBottomPercentFilterPostRequestBody() { - 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 ApplyBottomPercentFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyBottomPercentFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyBottomPercentFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getPercent() { - return this.backingStore.get("percent"); - } - /** - * 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.writeIntegerValue("percent", this.getPercent()); - 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 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 percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index ae9b366cfd8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter; - -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.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 applyBottomPercentFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyBottomPercentFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyBottomPercentFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyBottomPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyBottomPercentFilterRequestBuilder} 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 ApplyBottomPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", rawUrl); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyBottomPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomPercentFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyBottomPercentFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index afacac2cf37..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter; - -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 ApplyCellColorFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyCellColorFilterPostRequestBody} and sets the default values. - */ - public ApplyCellColorFilterPostRequestBody() { - 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 ApplyCellColorFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyCellColorFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyCellColorFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index aace67f9f3e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter; - -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.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 applyCellColorFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyCellColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyCellColorFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyCellColorFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyCellColorFilterRequestBuilder} 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 ApplyCellColorFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", rawUrl); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyCellColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCellColorFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyCellColorFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index 2f927d49438..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter; - -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 ApplyCustomFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyCustomFilterPostRequestBody} and sets the default values. - */ - public ApplyCustomFilterPostRequestBody() { - 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 ApplyCustomFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyCustomFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyCustomFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria1 property value. The criteria1 property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria1() { - return this.backingStore.get("criteria1"); - } - /** - * Gets the criteria2 property value. The criteria2 property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria2() { - return this.backingStore.get("criteria2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria1", (n) -> { this.setCriteria1(n.getStringValue()); }); - deserializerMap.put("criteria2", (n) -> { this.setCriteria2(n.getStringValue()); }); - deserializerMap.put("oper", (n) -> { this.setOper(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the oper property value. The oper property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getOper() { - return this.backingStore.get("oper"); - } - /** - * 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.writeStringValue("criteria1", this.getCriteria1()); - writer.writeStringValue("criteria2", this.getCriteria2()); - writer.writeStringValue("oper", this.getOper()); - 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 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 criteria1 property value. The criteria1 property - * @param value Value to set for the criteria1 property. - */ - public void setCriteria1(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria1", value); - } - /** - * Sets the criteria2 property value. The criteria2 property - * @param value Value to set for the criteria2 property. - */ - public void setCriteria2(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria2", value); - } - /** - * Sets the oper property value. The oper property - * @param value Value to set for the oper property. - */ - public void setOper(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("oper", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index 922a1a31e33..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter; - -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.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 applyCustomFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyCustomFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyCustomFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyCustomFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyCustomFilterRequestBuilder} 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 ApplyCustomFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", rawUrl); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyCustomFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCustomFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyCustomFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index 4fc9b7c3707..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter; - -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 ApplyDynamicFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyDynamicFilterPostRequestBody} and sets the default values. - */ - public ApplyDynamicFilterPostRequestBody() { - 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 ApplyDynamicFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyDynamicFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyDynamicFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("criteria", this.getCriteria()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index 3f50f5fb0fb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter; - -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.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 applyDynamicFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyDynamicFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyDynamicFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyDynamicFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyDynamicFilterRequestBuilder} 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 ApplyDynamicFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", rawUrl); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyDynamicFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyDynamicFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyDynamicFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index fd269368955..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter; - -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 ApplyFontColorFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyFontColorFilterPostRequestBody} and sets the default values. - */ - public ApplyFontColorFilterPostRequestBody() { - 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 ApplyFontColorFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyFontColorFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyFontColorFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index 64ea69c1d6b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter; - -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.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 applyFontColorFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyFontColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyFontColorFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyFontColorFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyFontColorFilterRequestBuilder} 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 ApplyFontColorFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", rawUrl); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyFontColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyFontColorFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyFontColorFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 54ae9583b50..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.models.WorkbookIcon; -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 ApplyIconFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyIconFilterPostRequestBody} and sets the default values. - */ - public ApplyIconFilterPostRequestBody() { - 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 ApplyIconFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyIconFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyIconFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("icon", (n) -> { this.setIcon(n.getObjectValue(WorkbookIcon::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the icon property value. The icon property - * @return a {@link WorkbookIcon} - */ - @jakarta.annotation.Nullable - public WorkbookIcon getIcon() { - return this.backingStore.get("icon"); - } - /** - * 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("icon", this.getIcon()); - 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 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 icon property value. The icon property - * @param value Value to set for the icon property. - */ - public void setIcon(@jakarta.annotation.Nullable final WorkbookIcon value) { - this.backingStore.set("icon", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index e90826415bf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -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.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 applyIconFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyIconFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyIconFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyIconFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyIconFilterRequestBuilder} 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 ApplyIconFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", rawUrl); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyIconFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyIconFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyIconFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index 74b97f9ca94..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter; - -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 ApplyTopItemsFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyTopItemsFilterPostRequestBody} and sets the default values. - */ - public ApplyTopItemsFilterPostRequestBody() { - 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 ApplyTopItemsFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyTopItemsFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyTopItemsFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the count property value. The count property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getCount() { - return this.backingStore.get("count"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("count", (n) -> { this.setCount(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * 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.writeIntegerValue("count", this.getCount()); - 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 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 count property value. The count property - * @param value Value to set for the count property. - */ - public void setCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("count", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index 0ba1ae2f758..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter; - -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.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 applyTopItemsFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyTopItemsFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyTopItemsFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyTopItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyTopItemsFilterRequestBuilder} 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 ApplyTopItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", rawUrl); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyTopItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopItemsFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyTopItemsFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index 403aeff3a16..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter; - -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 ApplyTopPercentFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyTopPercentFilterPostRequestBody} and sets the default values. - */ - public ApplyTopPercentFilterPostRequestBody() { - 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 ApplyTopPercentFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyTopPercentFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyTopPercentFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getPercent() { - return this.backingStore.get("percent"); - } - /** - * 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.writeIntegerValue("percent", this.getPercent()); - 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 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 percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index c11b5f2f610..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter; - -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.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 applyTopPercentFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyTopPercentFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyTopPercentFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyTopPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyTopPercentFilterRequestBuilder} 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 ApplyTopPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", rawUrl); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyTopPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopPercentFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyTopPercentFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index 64b0f46a25f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -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.serialization.UntypedNode; -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 ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - 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 ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index e240b039bef..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -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.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 applyValuesFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyValuesFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyValuesFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyValuesFilterRequestBuilder} 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 ApplyValuesFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", rawUrl); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyValuesFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyValuesFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyValuesFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index 82f260a1351..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl); - } - /** - * Clear the filter on the given column. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the filter on the given column. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the filter on the given column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the filter on the given column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 973a0a59433..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the header row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the header row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index 211fac22475..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the entire column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the entire column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 386702c4eec..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 8a0c1dd8f62..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. - * @return a {@link FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder filter() { - return new FilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})", rawUrl); - } - /** - * Gets a column based on its position in the collection. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get() { - return get(null); - } - /** - * Gets a column based on its position in the collection. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Gets a column based on its position in the collection. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets a column based on its position in the collection. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index e4a25d9c2c5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index abb0b966ba5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFilter; -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 manage the filter property of the microsoft.graph.workbookTableColumn entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FilterRequestBuilder} 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 FilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property filter for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get() { - return get(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return patch(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Delete navigation property filter for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @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 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; - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Retrieve the filter applied to the column. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 172bdbac754..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the header row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the header row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 0d600aaefa6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", rawUrl); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the entire column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the entire column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 0c086d055e2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index ac7bbd8e2c3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.converttorange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 convertToRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertToRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", pathParameters); - } - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} 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 ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", rawUrl); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post() { - return post(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConvertToRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 1a1f76297af..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 6219a16e8df..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with header row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with header row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index f5e19feecf4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", rawUrl); - } - /** - * Get the range object associated with the entire table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Get the range object associated with the entire table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Get the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the range object associated with the entire table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index bcafac0c39b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.reapplyfilters; - -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.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 reapplyFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", pathParameters); - } - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} 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 ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", rawUrl); - } - /** - * Reapplies all the filters currently on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies all the filters currently on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies all the filters currently on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies all the filters currently on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index 3503569e0d1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @param workbookTableRowId The unique identifier of workbookTableRow - * @return a {@link WorkbookTableRowItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableRowItemRequestBuilder byWorkbookTableRowId(@jakarta.annotation.Nonnull final String workbookTableRowId) { - Objects.requireNonNull(workbookTableRowId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTableRow%2Did", workbookTableRowId); - return new WorkbookTableRowItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link RowsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RowsRequestBuilder} 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 RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRowCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return post(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RowsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index 9eda6c12ee9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - 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 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 index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index eb83ebf5a69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", rawUrl); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index 2395a9a1c3b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index 064eea95887..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index 2732d4e5e58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item.range.RangeRequestBuilder; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableRowItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableRowItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableRowItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableRowItemRequestBuilder} 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 WorkbookTableRowItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property rows for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property rows for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow patch(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return patch(body, null); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow patch(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Delete navigation property rows for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property rows for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableRowItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableRowItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index 827a712815d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 14f1c357293..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})", rawUrl); - } - /** - * Gets a row based on its position in the collection. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Gets a row based on its position in the collection. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Gets a row based on its position in the collection. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets a row based on its position in the collection. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 54077280d3a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index c054e324bb7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableSort; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.reapply.ReapplyRequestBuilder; -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 manage the sort property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SortRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the apply method. - * @return a {@link ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder apply() { - return new ApplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapply method. - * @return a {@link ReapplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyRequestBuilder reapply() { - return new ReapplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link SortRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SortRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SortRequestBuilder} 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 SortRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property sort for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get() { - return get(null); - } - /** - * Represents the sorting for the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return patch(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Delete navigation property sort for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the sorting for the table. Read-only. - * @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 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; - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SortRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the sorting for the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index 7af81b66281..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply; - -import com.microsoft.graph.models.WorkbookSortField; -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 ApplyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyPostRequestBody} and sets the default values. - */ - public ApplyPostRequestBody() { - 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 ApplyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fields", (n) -> { this.setFields(n.getCollectionOfObjectValues(WorkbookSortField::createFromDiscriminatorValue)); }); - deserializerMap.put("matchCase", (n) -> { this.setMatchCase(n.getBooleanValue()); }); - deserializerMap.put("method", (n) -> { this.setMethod(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the fields property value. The fields property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getFields() { - return this.backingStore.get("fields"); - } - /** - * Gets the matchCase property value. The matchCase property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getMatchCase() { - return this.backingStore.get("matchCase"); - } - /** - * Gets the method property value. The method property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMethod() { - return this.backingStore.get("method"); - } - /** - * 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.writeCollectionOfObjectValues("fields", this.getFields()); - writer.writeBooleanValue("matchCase", this.getMatchCase()); - writer.writeStringValue("method", this.getMethod()); - 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 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 fields property value. The fields property - * @param value Value to set for the fields property. - */ - public void setFields(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("fields", value); - } - /** - * Sets the matchCase property value. The matchCase property - * @param value Value to set for the matchCase property. - */ - public void setMatchCase(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("matchCase", value); - } - /** - * Sets the method property value. The method property - * @param value Value to set for the method property. - */ - public void setMethod(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("method", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index 8f516cea843..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply; - -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.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 apply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", pathParameters); - } - /** - * Instantiates a new {@link ApplyRequestBuilder} 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 ApplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", rawUrl); - } - /** - * Perform a sort operation. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - post(body, null); - } - /** - * Perform a sort operation. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Perform a sort operation. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Perform a sort operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index 1e8d2557048..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", rawUrl); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index 6acf3e1bf1f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.reapply; - -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.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 reapply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", pathParameters); - } - /** - * Instantiates a new {@link ReapplyRequestBuilder} 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 ReapplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", rawUrl); - } - /** - * Reapplies the current sorting parameters to the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies the current sorting parameters to the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies the current sorting parameters to the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies the current sorting parameters to the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index dc838fb7261..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with totals row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with totals row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index d009caad876..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current table. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 27b91aa3514..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.worksheet.WorksheetRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clearFilters method. - * @return a {@link ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder clearFilters() { - return new ClearFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the convertToRange method. - * @return a {@link ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder convertToRange() { - return new ConvertToRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapplyFilters method. - * @return a {@link ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder reapplyFilters() { - return new ReapplyFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @return a {@link RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder rows() { - return new RowsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. - * @return a {@link SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder sort() { - return new SortRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Invoke function itemAt - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function itemAt - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index ad8cb86af35..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters; - -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.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 clearFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters", pathParameters); - } - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} 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 ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters", rawUrl); - } - /** - * Clears all the filters currently applied on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears all the filters currently applied on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears all the filters currently applied on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears all the filters currently applied on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index ac0e17aa3a5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.columns; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.models.WorkbookTableColumnCollectionResponse; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumnCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 9a2e578b495..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.converttorange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 convertToRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertToRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange", pathParameters); - } - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} 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 ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange", rawUrl); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post() { - return post(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConvertToRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 0f096e87593..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index dbdc97116bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with header row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with header row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 6f768dc4f44..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", rawUrl); - } - /** - * Get the range object associated with the entire table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Get the range object associated with the entire table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Get the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the range object associated with the entire table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index cfa06b52389..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters; - -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.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 reapplyFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters", pathParameters); - } - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} 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 ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters", rawUrl); - } - /** - * Reapplies all the filters currently on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies all the filters currently on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies all the filters currently on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies all the filters currently on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index c46cb656b62..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.rows; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.models.WorkbookTableRowCollectionResponse; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RowsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RowsRequestBuilder} 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 RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRowCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return post(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RowsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index 9b635206d12..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.sort; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableSort; -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 manage the sort property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SortRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SortRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SortRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SortRequestBuilder} 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 SortRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property sort for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get() { - return get(null); - } - /** - * Represents the sorting for the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return patch(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Delete navigation property sort for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the sorting for the table. Read-only. - * @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 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; - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SortRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the sorting for the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 1ac16e53bb7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with totals row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with totals row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index fa180945d7c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current table. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java deleted file mode 100644 index 6c5ad7c0487..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -import com.microsoft.graph.models.WorkbookWorksheetCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.WorkbookWorksheetItemRequestBuilder; -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 manage the worksheets property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheets property of the microsoft.graph.workbook entity. - * @param workbookWorksheetId The unique identifier of workbookWorksheet - * @return a {@link WorkbookWorksheetItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookWorksheetItemRequestBuilder byWorkbookWorksheetId(@jakarta.annotation.Nonnull final String workbookWorksheetId) { - Objects.requireNonNull(workbookWorksheetId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookWorksheet%2Did", workbookWorksheetId); - return new WorkbookWorksheetItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link WorksheetsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetsRequestBuilder} 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 WorksheetsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @return a {@link WorkbookWorksheetCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheetCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheetCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to worksheets for storage - * @param body The request body - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet post(@jakarta.annotation.Nonnull final WorkbookWorksheet body) { - return post(body, null); - } - /** - * Create new navigation property to worksheets for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet post(@jakarta.annotation.Nonnull final WorkbookWorksheet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @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 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; - } - /** - * Create new navigation property to worksheets for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheet body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to worksheets for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorksheetsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java deleted file mode 100644 index b1f197b9785..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.add; - -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * 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.writeStringValue("name", this.getName()); - 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 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 name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java deleted file mode 100644 index 62b831a085e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/add", rawUrl); - } - /** - * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java deleted file mode 100644 index b993efd6078..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java deleted file mode 100644 index 7a6c14e76a2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java +++ /dev/null @@ -1,326 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn.CellWithRowWithColumnRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.ChartsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.NamesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.PivotTablesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.ProtectionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.rangewithaddress.RangeWithAddressRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.TablesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrange.UsedRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrangewithvaluesonly.UsedRangeWithValuesOnlyRequestBuilder; -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 manage the worksheets property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookWorksheetItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link ChartsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChartsRequestBuilder charts() { - return new ChartsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link NamesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NamesRequestBuilder names() { - return new NamesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link PivotTablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PivotTablesRequestBuilder pivotTables() { - return new PivotTablesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the protection property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link ProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProtectionRequestBuilder protection() { - return new ProtectionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link TablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TablesRequestBuilder tables() { - return new TablesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the usedRange method. - * @return a {@link UsedRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsedRangeRequestBuilder usedRange() { - return new UsedRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the cell method. - * @param column Usage: column={column} - * @param row Usage: row={row} - * @return a {@link CellWithRowWithColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CellWithRowWithColumnRequestBuilder cellWithRowWithColumn(@jakarta.annotation.Nonnull final Integer column, @jakarta.annotation.Nonnull final Integer row) { - Objects.requireNonNull(column); - Objects.requireNonNull(row); - return new CellWithRowWithColumnRequestBuilder(pathParameters, requestAdapter, column, row); - } - /** - * Instantiates a new {@link WorkbookWorksheetItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookWorksheetItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookWorksheetItemRequestBuilder} 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 WorkbookWorksheetItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property worksheets for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property worksheets for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Update the navigation property worksheets in storage - * @param body The request body - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet patch(@jakarta.annotation.Nonnull final WorkbookWorksheet body) { - return patch(body, null); - } - /** - * Update the navigation property worksheets in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet patch(@jakarta.annotation.Nonnull final WorkbookWorksheet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Provides operations to call the range method. - * @param address Usage: address='{address}' - * @return a {@link RangeWithAddressRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeWithAddressRequestBuilder rangeWithAddress(@jakarta.annotation.Nonnull final String address) { - Objects.requireNonNull(address); - return new RangeWithAddressRequestBuilder(pathParameters, requestAdapter, address); - } - /** - * Delete navigation property worksheets for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property worksheets for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - * @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 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; - } - /** - * Update the navigation property worksheets in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheet body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property worksheets in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Provides operations to call the usedRange method. - * @param valuesOnly Usage: valuesOnly={valuesOnly} - * @return a {@link UsedRangeWithValuesOnlyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsedRangeWithValuesOnlyRequestBuilder usedRangeWithValuesOnly(@jakarta.annotation.Nonnull final Boolean valuesOnly) { - Objects.requireNonNull(valuesOnly); - return new UsedRangeWithValuesOnlyRequestBuilder(pathParameters, requestAdapter, valuesOnly); - } - /** - * 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 WorkbookWorksheetItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookWorksheetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookWorksheetItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of worksheets associated with the workbook. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java deleted file mode 100644 index 91fed2e3bc2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 cell method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CellWithRowWithColumnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CellWithRowWithColumnRequestBuilder} and sets the default values. - * @param column Usage: column={column} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param row Usage: row={row} - */ - public CellWithRowWithColumnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer column, @jakarta.annotation.Nullable final Integer row) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})", pathParameters); - this.pathParameters.put("column", column); - this.pathParameters.put("row", row); - } - /** - * Instantiates a new {@link CellWithRowWithColumnRequestBuilder} 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 CellWithRowWithColumnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})", rawUrl); - } - /** - * Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CellWithRowWithColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CellWithRowWithColumnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CellWithRowWithColumnRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java deleted file mode 100644 index 7ecdae4e351..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ /dev/null @@ -1,274 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChart; -import com.microsoft.graph.models.WorkbookChartCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.WorkbookChartItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.ItemAtWithIndexRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.ItemWithNameRequestBuilder; -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 manage the charts property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChartsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. - * @param workbookChartId The unique identifier of workbookChart - * @return a {@link WorkbookChartItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartItemRequestBuilder byWorkbookChartId(@jakarta.annotation.Nonnull final String workbookChartId) { - Objects.requireNonNull(workbookChartId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookChart%2Did", workbookChartId); - return new WorkbookChartItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChartsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChartsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChartsRequestBuilder} 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 ChartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @return a {@link WorkbookChartCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartCollectionResponse get() { - return get(null); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Provides operations to call the item method. - * @param name Usage: name='{name}' - * @return a {@link ItemWithNameRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemWithNameRequestBuilder itemWithName(@jakarta.annotation.Nonnull final String name) { - Objects.requireNonNull(name); - return new ItemWithNameRequestBuilder(pathParameters, requestAdapter, name); - } - /** - * Create new navigation property to charts for storage - * @param body The request body - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart post(@jakarta.annotation.Nonnull final WorkbookChart body) { - return post(body, null); - } - /** - * Create new navigation property to charts for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart post(@jakarta.annotation.Nonnull final WorkbookChart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @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 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; - } - /** - * Create new navigation property to charts for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChart body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to charts for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ChartsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChartsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java deleted file mode 100644 index 5b9eb23a94e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Gets the type property value. The type property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getType() { - return this.backingStore.get("type"); - } - /** - * 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.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeStringValue("type", this.getType()); - 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 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 seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java deleted file mode 100644 index 66554e18d01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChart; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", rawUrl); - } - /** - * Creates a new chart. - * @param body The request body - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChart post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Creates a new chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChart post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Creates a new chart. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Creates a new chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java deleted file mode 100644 index dda45b25387..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java deleted file mode 100644 index 9ca81aca079..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java deleted file mode 100644 index 96c77604188..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChart; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.AxesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.image.ImageRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.LegendRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.SeriesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata.SetDataRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.TitleRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.worksheet.WorksheetRequestBuilder; -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 manage the charts property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookChartItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. - * @return a {@link AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder axes() { - return new AxesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. - * @return a {@link DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder dataLabels() { - return new DataLabelsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the image method. - * @return a {@link ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder image() { - return new ImageRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. - * @return a {@link LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder legend() { - return new LegendRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. - * @return a {@link SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder series() { - return new SeriesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setData method. - * @return a {@link SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder setData() { - return new SetDataRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setPosition method. - * @return a {@link SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder setPosition() { - return new SetPositionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookChartItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookChartItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookChartItemRequestBuilder} 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 WorkbookChartItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property charts for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property charts for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart get() { - return get(null); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Provides operations to call the image method. - * @param width Usage: width={width} - * @return a {@link ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder imageWithWidth(@jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(width); - return new ImageWithWidthRequestBuilder(pathParameters, requestAdapter, width); - } - /** - * Provides operations to call the image method. - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder imageWithWidthWithHeight(@jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightRequestBuilder(pathParameters, requestAdapter, height, width); - } - /** - * Provides operations to call the image method. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder imageWithWidthWithHeightWithFittingMode(@jakarta.annotation.Nonnull final String fittingMode, @jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(fittingMode); - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(pathParameters, requestAdapter, fittingMode, height, width); - } - /** - * Update the navigation property charts in storage - * @param body The request body - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart patch(@jakarta.annotation.Nonnull final WorkbookChart body) { - return patch(body, null); - } - /** - * Update the navigation property charts in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart patch(@jakarta.annotation.Nonnull final WorkbookChart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Delete navigation property charts for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property charts for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - * @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 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; - } - /** - * Update the navigation property charts in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChart body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property charts in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChart body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookChartItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookChartItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns collection of charts that are part of the worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java deleted file mode 100644 index 5176bc894e6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxes; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.CategoryAxisRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.SeriesAxisRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.ValueAxisRequestBuilder; -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 manage the axes property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AxesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. - * @return a {@link CategoryAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CategoryAxisRequestBuilder categoryAxis() { - return new CategoryAxisRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity. - * @return a {@link SeriesAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesAxisRequestBuilder seriesAxis() { - return new SeriesAxisRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the valueAxis property of the microsoft.graph.workbookChartAxes entity. - * @return a {@link ValueAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValueAxisRequestBuilder valueAxis() { - return new ValueAxisRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link AxesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AxesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AxesRequestBuilder} 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 AxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property axes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart axes. Read-only. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get() { - return get(null); - } - /** - * Represents chart axes. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return patch(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Delete navigation property axes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart axes. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart axes. Read-only. - * @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 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; - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AxesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart axes. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java deleted file mode 100644 index ad07f636e0d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxis; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.TitleRequestBuilder; -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 manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CategoryAxisRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder majorGridlines() { - return new MajorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder minorGridlines() { - return new MinorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CategoryAxisRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CategoryAxisRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CategoryAxisRequestBuilder} 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 CategoryAxisRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property categoryAxis for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property categoryAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the category axis in a chart. Read-only. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get() { - return get(null); - } - /** - * Represents the category axis in a chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Update the navigation property categoryAxis in storage - * @param body The request body - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return patch(body, null); - } - /** - * Update the navigation property categoryAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Delete navigation property categoryAxis for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property categoryAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the category axis in a chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the category axis in a chart. Read-only. - * @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 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; - } - /** - * Update the navigation property categoryAxis in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property categoryAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CategoryAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CategoryAxisRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CategoryAxisRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the category axis in a chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 9248f3e7d05..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 1b40274050c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 2bf946bb41e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 2db4803ec58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index 215e6a90c1e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.FormatRequestBuilder; -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 manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MajorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} 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 MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property majorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property majorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MajorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index ed0bd7b80b8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index cedead6bf6e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index d8e0424d20c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index a1c7655a0f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.FormatRequestBuilder; -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 manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} 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 MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property minorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property minorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 5bcc2b5df29..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index f192e1e5a68..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 02ce8474c18..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java deleted file mode 100644 index b082d3a441f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitle; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format.FormatRequestBuilder; -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 manage the title property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the axis title. Read-only. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get() { - return get(null); - } - /** - * Represents the axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 0d0481c3bcb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get() { - return get(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index bfb7b2fafd1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java deleted file mode 100644 index 4a91e693c7a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxis; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.TitleRequestBuilder; -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 manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesAxisRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder majorGridlines() { - return new MajorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder minorGridlines() { - return new MinorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link SeriesAxisRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SeriesAxisRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SeriesAxisRequestBuilder} 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 SeriesAxisRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property seriesAxis for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property seriesAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the series axis of a 3-dimensional chart. Read-only. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get() { - return get(null); - } - /** - * Represents the series axis of a 3-dimensional chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Update the navigation property seriesAxis in storage - * @param body The request body - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return patch(body, null); - } - /** - * Update the navigation property seriesAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Delete navigation property seriesAxis for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property seriesAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the series axis of a 3-dimensional chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the series axis of a 3-dimensional chart. Read-only. - * @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 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; - } - /** - * Update the navigation property seriesAxis in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property seriesAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SeriesAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesAxisRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SeriesAxisRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the series axis of a 3-dimensional chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java deleted file mode 100644 index e1bed71c598..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 823b9184d98..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 1eedf28487a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index fc30cb567e3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index ea66601d765..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.FormatRequestBuilder; -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 manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MajorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} 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 MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property majorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property majorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MajorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index ef7cfd434c2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index a8f4bf71928..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 6e2af3cccbd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index f91d19dc358..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.FormatRequestBuilder; -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 manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} 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 MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property minorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property minorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 84e3468e76a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index f76e91bfa49..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index e4aeb57cd43..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java deleted file mode 100644 index a3b9808fbf8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitle; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format.FormatRequestBuilder; -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 manage the title property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the axis title. Read-only. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get() { - return get(null); - } - /** - * Represents the axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index e3ab406fc66..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get() { - return get(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 41c3d187d87..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java deleted file mode 100644 index 63007b90255..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxis; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.TitleRequestBuilder; -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 manage the valueAxis property of the microsoft.graph.workbookChartAxes entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ValueAxisRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder majorGridlines() { - return new MajorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder minorGridlines() { - return new MinorGridlinesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ValueAxisRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ValueAxisRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ValueAxisRequestBuilder} 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 ValueAxisRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property valueAxis for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property valueAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the value axis in an axis. Read-only. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get() { - return get(null); - } - /** - * Represents the value axis in an axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Update the navigation property valueAxis in storage - * @param body The request body - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return patch(body, null); - } - /** - * Update the navigation property valueAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxis} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxis patch(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxis::createFromDiscriminatorValue); - } - /** - * Delete navigation property valueAxis for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property valueAxis for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the value axis in an axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the value axis in an axis. Read-only. - * @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 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; - } - /** - * Update the navigation property valueAxis in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property valueAxis in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxis body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ValueAxisRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ValueAxisRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ValueAxisRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the value axis in an axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java deleted file mode 100644 index d8e8194b1c5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart object, which includes line and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 2e5c473410c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index f1fa3226f2a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartAxisFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index af4920852d2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index bc9a6535edf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.FormatRequestBuilder; -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 manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MajorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MajorGridlinesRequestBuilder} 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 MajorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property majorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property majorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property majorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property majorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MajorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MajorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MajorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index b84e38e4113..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 26540222a84..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index cac24ae442a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 941d4cbd643..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlines; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.FormatRequestBuilder; -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 manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinorGridlinesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MinorGridlinesRequestBuilder} 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 MinorGridlinesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property minorGridlines for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get() { - return get(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return patch(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlines} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlines patch(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlines::createFromDiscriminatorValue); - } - /** - * Delete navigation property minorGridlines for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property minorGridlines for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - * @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 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; - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property minorGridlines in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlines body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MinorGridlinesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MinorGridlinesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MinorGridlinesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 217094313b1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartGridlines entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get() { - return get(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartGridlinesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartGridlinesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartGridlinesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart gridlines. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartGridlinesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart gridlines. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index e2a1583e90d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents chart line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 21967ae7a52..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java deleted file mode 100644 index 7187bcb8251..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitle; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format.FormatRequestBuilder; -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 manage the title property of the microsoft.graph.workbookChartAxis entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the axis title. Read-only. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get() { - return get(null); - } - /** - * Represents the axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitle patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index d24d6ffdc03..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartAxisTitle entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get() { - return get(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxisTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxisTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxisTitleFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of chart axis title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of chart axis title. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxisTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of chart axis title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 33f60544770..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 35394994ffe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartDataLabels; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.FormatRequestBuilder; -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 manage the dataLabels property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataLabelsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartDataLabels entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DataLabelsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DataLabelsRequestBuilder} 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 DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property dataLabels for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get() { - return get(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return patch(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Delete navigation property dataLabels for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataLabelsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the data labels on the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java deleted file mode 100644 index 9cd292108cb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartDataLabelFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.FillRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartDataLabels entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the format of chart data labels, which includes fill and font formatting. Read-only. - * @return a {@link WorkbookChartDataLabelFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabelFormat get() { - return get(null); - } - /** - * Represents the format of chart data labels, which includes fill and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabelFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabelFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabelFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartDataLabelFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabelFormat patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabelFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabelFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabelFormat patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabelFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabelFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the format of chart data labels, which includes fill and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the format of chart data labels, which includes fill and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabelFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabelFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the format of chart data labels, which includes fill and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java deleted file mode 100644 index 94d38b212cb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of the current chart data label. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of the current chart data label. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of the current chart data label. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of the current chart data label. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of the current chart data label. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index b06c095005e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index f92ce28f87b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 2a619438c3c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java deleted file mode 100644 index 2cb7e2bd1be..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java deleted file mode 100644 index fd371e5dce2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAreaFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartAreaFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartAreaFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get() { - return get(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Encapsulates the format properties for the chart area. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 73b66d8a8fb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartAreaFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 6982386eefd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 623a057c0ed..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 1a243c4be7d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java deleted file mode 100644 index 2b9cae98855..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartAreaFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java deleted file mode 100644 index d114f35fae2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.image; - -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 ImageGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageGetResponse} and sets the default values. - */ - public ImageGetResponse() { - 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 ImageGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java deleted file mode 100644 index 4af95723811..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.image; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image()", pathParameters); - } - /** - * Instantiates a new {@link ImageRequestBuilder} 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 ImageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image()", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index 1cec7f10f37..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth; - -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 ImageWithWidthGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthGetResponse} and sets the default values. - */ - public ImageWithWidthGetResponse() { - 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 ImageWithWidthGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index 31f34080bbd..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width})", pathParameters); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} 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 ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index 6e6aebe9c6c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight; - -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 ImageWithWidthWithHeightGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightGetResponse() { - 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 ImageWithWidthWithHeightGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 86841e6745e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} and sets the default values. - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height})", pathParameters); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} 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 ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index dcc5eda850e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode; - -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 ImageWithWidthWithHeightWithFittingModeGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightWithFittingModeGetResponse() { - 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 ImageWithWidthWithHeightWithFittingModeGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightWithFittingModeGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index 6d2a0a0f271..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightWithFittingModeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} and sets the default values. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String fittingMode, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters); - this.pathParameters.put("fittingMode", fittingMode); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightWithFittingModeGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java deleted file mode 100644 index ecd1e019819..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLegend; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.FormatRequestBuilder; -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 manage the legend property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LegendRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartLegend entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LegendRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LegendRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LegendRequestBuilder} 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 LegendRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property legend for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get() { - return get(null); - } - /** - * Represents the legend for the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return patch(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Delete navigation property legend for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the legend for the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LegendRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the legend for the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java deleted file mode 100644 index 7fabaff6a8e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLegendFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.FillRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartLegend entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartLegendFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartLegendFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. - * @return a {@link WorkbookChartLegendFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegendFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegendFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegendFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegendFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartLegendFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegendFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLegendFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegendFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegendFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLegendFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegendFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegendFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegendFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java deleted file mode 100644 index 6db36e662a1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartLegendFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of an object, which includes background formating information. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of an object, which includes background formating information. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of an object, which includes background formating information. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of an object, which includes background formating information. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of an object, which includes background formating information. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 48550c58a54..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 1bb1cb4c8be..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 1636475820f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java deleted file mode 100644 index aa18401c23b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartLegendFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java deleted file mode 100644 index 74210d81084..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeries; -import com.microsoft.graph.models.WorkbookChartSeriesCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.WorkbookChartSeriesItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the series property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. - * @param workbookChartSeriesId The unique identifier of workbookChartSeries - * @return a {@link WorkbookChartSeriesItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartSeriesItemRequestBuilder byWorkbookChartSeriesId(@jakarta.annotation.Nonnull final String workbookChartSeriesId) { - Objects.requireNonNull(workbookChartSeriesId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookChartSeries%2Did", workbookChartSeriesId); - return new WorkbookChartSeriesItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link SeriesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SeriesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SeriesRequestBuilder} 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 SeriesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get() { - return get(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return post(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @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 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; - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SeriesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java deleted file mode 100644 index f6144275778..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java deleted file mode 100644 index d57f2294cd6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java deleted file mode 100644 index 5fb93c3e1f7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeries; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.PointsRequestBuilder; -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 manage the series property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookChartSeriesItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. - * @return a {@link PointsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PointsRequestBuilder points() { - return new PointsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookChartSeriesItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookChartSeriesItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookChartSeriesItemRequestBuilder} 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 WorkbookChartSeriesItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property series for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property series for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries get() { - return get(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Update the navigation property series in storage - * @param body The request body - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries patch(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return patch(body, null); - } - /** - * Update the navigation property series in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries patch(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Delete navigation property series for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property series for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property series in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property series in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookChartSeriesItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartSeriesItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookChartSeriesItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java deleted file mode 100644 index d1748d91158..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeriesFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line.LineRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartSeries entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the line property of the microsoft.graph.workbookChartSeriesFormat entity. - * @return a {@link LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder line() { - return new LineRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index cbb178e172c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of a chart series, which includes background formatting information. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of a chart series, which includes background formatting information. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of a chart series, which includes background formatting information. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of a chart series, which includes background formatting information. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of a chart series, which includes background formatting information. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 754a08fc5da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 2d5bc5f1587..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index f62f57a466d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java deleted file mode 100644 index a9f6f0434ef..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLineFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line.clear.ClearRequestBuilder; -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 manage the line property of the microsoft.graph.workbookChartSeriesFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LineRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LineRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LineRequestBuilder} 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 LineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property line for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents line formatting. Read-only. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get() { - return get(null); - } - /** - * Represents line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return patch(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLineFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLineFormat patch(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLineFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property line for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property line for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property line in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property line in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLineFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LineRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LineRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 856c853961f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", rawUrl); - } - /** - * Clear the line format of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the line format of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the line format of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the line format of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java deleted file mode 100644 index b4fd46db762..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPoint; -import com.microsoft.graph.models.WorkbookChartPointCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.WorkbookChartPointItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the points property of the microsoft.graph.workbookChartSeries entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PointsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. - * @param workbookChartPointId The unique identifier of workbookChartPoint - * @return a {@link WorkbookChartPointItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartPointItemRequestBuilder byWorkbookChartPointId(@jakarta.annotation.Nonnull final String workbookChartPointId) { - Objects.requireNonNull(workbookChartPointId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookChartPoint%2Did", workbookChartPointId); - return new WorkbookChartPointItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link PointsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PointsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PointsRequestBuilder} 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 PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link WorkbookChartPointCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return post(body, null); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @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 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; - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PointsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PointsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all points in the series. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java deleted file mode 100644 index 1717ce02cac..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java deleted file mode 100644 index 4a75aa05061..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java deleted file mode 100644 index 7b2cea68cf7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPoint; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.FormatRequestBuilder; -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 manage the points property of the microsoft.graph.workbookChartSeries entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookChartPointItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookChartPointItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookChartPointItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookChartPointItemRequestBuilder} 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 WorkbookChartPointItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property points for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property points for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint get() { - return get(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); - } - /** - * Update the navigation property points in storage - * @param body The request body - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint patch(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return patch(body, null); - } - /** - * Update the navigation property points in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint patch(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); - } - /** - * Delete navigation property points for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property points for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @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 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; - } - /** - * Update the navigation property points in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property points in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookChartPointItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookChartPointItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookChartPointItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of all points in the series. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java deleted file mode 100644 index 3c8975d21da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPointFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.FillRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartPoint entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartPointFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat get() { - return get(null); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat patch(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat patch(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Encapsulates the format properties chart point. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Encapsulates the format properties chart point. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 97ca8b6e8d0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartPointFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of a chart, which includes background formatting information. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of a chart, which includes background formatting information. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of a chart, which includes background formatting information. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of a chart, which includes background formatting information. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of a chart, which includes background formatting information. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 3f632bea543..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 317671403aa..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index c44e20cbddf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 0a18164694f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPoint; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})", rawUrl); - } - /** - * Retrieve a point based on its position within the series. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint get() { - return get(null); - } - /** - * Retrieve a point based on its position within the series. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); - } - /** - * Retrieve a point based on its position within the series. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve a point based on its position within the series. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 379d2800502..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPointFormat; -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 manage the format property of the microsoft.graph.workbookChartPoint entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat get() { - return get(null); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat patch(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointFormat patch(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Encapsulates the format properties chart point. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Encapsulates the format properties chart point. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPointFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Encapsulates the format properties chart point. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index cc1048deab6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeries; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.points.PointsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. - * @return a {@link PointsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PointsRequestBuilder points() { - return new PointsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})", rawUrl); - } - /** - * Retrieves a series based on its position in the collection - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries get() { - return get(null); - } - /** - * Retrieves a series based on its position in the collection - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Retrieves a series based on its position in the collection - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieves a series based on its position in the collection - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 8197b0d96b8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeriesFormat; -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 manage the format property of the microsoft.graph.workbookChartSeries entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesFormat patch(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeriesFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java deleted file mode 100644 index f56d3b2cf02..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.points; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartPoint; -import com.microsoft.graph.models.WorkbookChartPointCollectionResponse; -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 manage the points property of the microsoft.graph.workbookChartSeries entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PointsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PointsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PointsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PointsRequestBuilder} 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 PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link WorkbookChartPointCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPointCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPointCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPointCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return post(body, null); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartPoint} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); - } - /** - * Represents a collection of all points in the series. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all points in the series. Read-only. - * @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 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; - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to points for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartPoint body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PointsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PointsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all points in the series. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 35e2100a819..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -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.serialization.UntypedNode; -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 SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - 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 SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * 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.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - 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 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 seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java deleted file mode 100644 index ce0c3dd26fe..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -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.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 setData method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetDataRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetDataRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", pathParameters); - } - /** - * Instantiates a new {@link SetDataRequestBuilder} 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 SetDataRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", rawUrl); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - post(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetDataRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index 0dc8e46d4b6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -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.serialization.UntypedNode; -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 SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - 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 SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * 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("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - 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 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 endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 7779a8d67f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -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.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 setPosition method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetPositionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetPositionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", pathParameters); - } - /** - * Instantiates a new {@link SetPositionRequestBuilder} 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 SetPositionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", rawUrl); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - post(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetPositionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java deleted file mode 100644 index 60bf6ff5ed9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartTitle; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.FormatRequestBuilder; -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 manage the title property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChartTitle entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get() { - return get(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java deleted file mode 100644 index 5322ac1b034..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartTitleFormat; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.FillRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.font.FontRequestBuilder; -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 manage the format property of the microsoft.graph.workbookChartTitle entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fill property of the microsoft.graph.workbookChartTitleFormat entity. - * @return a {@link FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder fill() { - return new FillRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the font property of the microsoft.graph.workbookChartTitleFormat entity. - * @return a {@link FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder font() { - return new FontRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. - * @return a {@link WorkbookChartTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitleFormat get() { - return get(null); - } - /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitleFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitleFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartTitleFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitleFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitleFormat patch(@jakarta.annotation.Nonnull final WorkbookChartTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitleFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitleFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitleFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java deleted file mode 100644 index 8195982f3f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFill; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.setsolidcolor.SetSolidColorRequestBuilder; -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 manage the fill property of the microsoft.graph.workbookChartTitleFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FillRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setSolidColor method. - * @return a {@link SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder setSolidColor() { - return new SetSolidColorRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FillRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FillRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FillRequestBuilder} 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 FillRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fill for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get() { - return get(null); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return patch(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFill} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFill patch(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFill::createFromDiscriminatorValue); - } - /** - * Delete navigation property fill for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fill for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - * @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 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; - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fill in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFill body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FillRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FillRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FillRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the fill format of an object, which includes background formatting information. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 718c9c0a652..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", rawUrl); - } - /** - * Clear the fill color of a chart element. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the fill color of a chart element. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the fill color of a chart element. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the fill color of a chart element. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 39a4deaa18b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.setsolidcolor; - -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 SetSolidColorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetSolidColorPostRequestBody} and sets the default values. - */ - public SetSolidColorPostRequestBody() { - 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 SetSolidColorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetSolidColorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetSolidColorPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index bb80c3c1204..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.setsolidcolor; - -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.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 setSolidColor method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetSolidColorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", pathParameters); - } - /** - * Instantiates a new {@link SetSolidColorRequestBuilder} 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 SetSolidColorRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", rawUrl); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - post(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Sets the fill formatting of a chart element to a uniform color. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetSolidColorPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetSolidColorRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetSolidColorRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetSolidColorRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 33c59b8c175..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.font; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartFont; -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 manage the font property of the microsoft.graph.workbookChartTitleFormat entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FontRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FontRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FontRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FontRequestBuilder} 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 FontRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property font for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get() { - return get(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return patch(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartFont} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartFont patch(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartFont::createFromDiscriminatorValue); - } - /** - * Delete navigation property font for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property font for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - * @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 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; - } - /** - * Update the navigation property font in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property font in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartFont body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FontRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FontRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FontRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 17e96560b84..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index af006683aa1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChart; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes.AxesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image.ImageRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend.LegendRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series.SeriesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata.SetDataRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title.TitleRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.worksheet.WorksheetRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. - * @return a {@link AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder axes() { - return new AxesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. - * @return a {@link DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder dataLabels() { - return new DataLabelsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the image method. - * @return a {@link ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder image() { - return new ImageRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. - * @return a {@link LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder legend() { - return new LegendRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. - * @return a {@link SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder series() { - return new SeriesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setData method. - * @return a {@link SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder setData() { - return new SetDataRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setPosition method. - * @return a {@link SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder setPosition() { - return new SetPositionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})", rawUrl); - } - /** - * Gets a chart based on its position in the collection. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChart get() { - return get(null); - } - /** - * Gets a chart based on its position in the collection. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookChart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Provides operations to call the image method. - * @param width Usage: width={width} - * @return a {@link ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder imageWithWidth(@jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(width); - return new ImageWithWidthRequestBuilder(pathParameters, requestAdapter, width); - } - /** - * Provides operations to call the image method. - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder imageWithWidthWithHeight(@jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightRequestBuilder(pathParameters, requestAdapter, height, width); - } - /** - * Provides operations to call the image method. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder imageWithWidthWithHeightWithFittingMode(@jakarta.annotation.Nonnull final String fittingMode, @jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(fittingMode); - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(pathParameters, requestAdapter, fittingMode, height, width); - } - /** - * Gets a chart based on its position in the collection. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets a chart based on its position in the collection. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java deleted file mode 100644 index e1b73e2c29a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxes; -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 manage the axes property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AxesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AxesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AxesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AxesRequestBuilder} 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 AxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property axes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart axes. Read-only. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get() { - return get(null); - } - /** - * Represents chart axes. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return patch(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Delete navigation property axes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart axes. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart axes. Read-only. - * @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 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; - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AxesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart axes. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 0daf97b6ff0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartDataLabels; -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 manage the dataLabels property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataLabelsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataLabelsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DataLabelsRequestBuilder} 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 DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property dataLabels for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get() { - return get(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return patch(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Delete navigation property dataLabels for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataLabelsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the data labels on the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 7ea257d483d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAreaFormat; -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 manage the format property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get() { - return get(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Encapsulates the format properties for the chart area. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java deleted file mode 100644 index 0bcc545a9e4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image; - -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 ImageGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageGetResponse} and sets the default values. - */ - public ImageGetResponse() { - 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 ImageGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java deleted file mode 100644 index 0bc750f0124..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()", pathParameters); - } - /** - * Instantiates a new {@link ImageRequestBuilder} 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 ImageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index c30802ee144..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth; - -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 ImageWithWidthGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthGetResponse} and sets the default values. - */ - public ImageWithWidthGetResponse() { - 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 ImageWithWidthGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index ac80ce1f4ef..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", pathParameters); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} 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 ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index b58410b062c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight; - -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 ImageWithWidthWithHeightGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightGetResponse() { - 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 ImageWithWidthWithHeightGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 11803c1b415..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} and sets the default values. - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", pathParameters); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} 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 ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 527f9ab41f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode; - -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 ImageWithWidthWithHeightWithFittingModeGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightWithFittingModeGetResponse() { - 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 ImageWithWidthWithHeightWithFittingModeGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightWithFittingModeGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index 6d72ed29f05..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightWithFittingModeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} and sets the default values. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String fittingMode, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters); - this.pathParameters.put("fittingMode", fittingMode); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightWithFittingModeGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java deleted file mode 100644 index 711c359cb18..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLegend; -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 manage the legend property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LegendRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LegendRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LegendRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LegendRequestBuilder} 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 LegendRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property legend for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get() { - return get(null); - } - /** - * Represents the legend for the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return patch(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Delete navigation property legend for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the legend for the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LegendRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the legend for the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java deleted file mode 100644 index 2958c96307f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeries; -import com.microsoft.graph.models.WorkbookChartSeriesCollectionResponse; -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 manage the series property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SeriesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SeriesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SeriesRequestBuilder} 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 SeriesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get() { - return get(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return post(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @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 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; - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SeriesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 448a787ff22..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -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.serialization.UntypedNode; -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 SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - 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 SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * 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.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - 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 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 seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java deleted file mode 100644 index 25a680789c0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -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.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 setData method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetDataRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetDataRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData", pathParameters); - } - /** - * Instantiates a new {@link SetDataRequestBuilder} 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 SetDataRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData", rawUrl); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - post(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetDataRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index d81d8f4b660..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -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.serialization.UntypedNode; -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 SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - 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 SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * 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("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - 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 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 endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 88e0c95bc69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -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.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 setPosition method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetPositionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetPositionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition", pathParameters); - } - /** - * Instantiates a new {@link SetPositionRequestBuilder} 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 SetPositionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition", rawUrl); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - post(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetPositionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java deleted file mode 100644 index 8266d731b56..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartTitle; -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 manage the title property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get() { - return get(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index d807c2fd367..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java deleted file mode 100644 index 8d91bce39f3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChart; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes.AxesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format.FormatRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image.ImageRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend.LegendRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series.SeriesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata.SetDataRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title.TitleRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.worksheet.WorksheetRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 item method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemWithNameRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. - * @return a {@link AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder axes() { - return new AxesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. - * @return a {@link DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder dataLabels() { - return new DataLabelsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. - * @return a {@link FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder format() { - return new FormatRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the image method. - * @return a {@link ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder image() { - return new ImageRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. - * @return a {@link LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder legend() { - return new LegendRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. - * @return a {@link SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder series() { - return new SeriesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setData method. - * @return a {@link SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder setData() { - return new SetDataRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the setPosition method. - * @return a {@link SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder setPosition() { - return new SetPositionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. - * @return a {@link TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder title() { - return new TitleRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemWithNameRequestBuilder} and sets the default values. - * @param name Usage: name='{name}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemWithNameRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String name) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')", pathParameters); - this.pathParameters.put("name", name); - } - /** - * Instantiates a new {@link ItemWithNameRequestBuilder} 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 ItemWithNameRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')", rawUrl); - } - /** - * Invoke function item - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart get() { - return get(null); - } - /** - * Invoke function item - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChart} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChart get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); - } - /** - * Provides operations to call the image method. - * @param width Usage: width={width} - * @return a {@link ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder imageWithWidth(@jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(width); - return new ImageWithWidthRequestBuilder(pathParameters, requestAdapter, width); - } - /** - * Provides operations to call the image method. - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder imageWithWidthWithHeight(@jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightRequestBuilder(pathParameters, requestAdapter, height, width); - } - /** - * Provides operations to call the image method. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param width Usage: width={width} - * @return a {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder imageWithWidthWithHeightWithFittingMode(@jakarta.annotation.Nonnull final String fittingMode, @jakarta.annotation.Nonnull final Integer height, @jakarta.annotation.Nonnull final Integer width) { - Objects.requireNonNull(fittingMode); - Objects.requireNonNull(height); - Objects.requireNonNull(width); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(pathParameters, requestAdapter, fittingMode, height, width); - } - /** - * Invoke function item - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function item - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemWithNameRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemWithNameRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemWithNameRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java deleted file mode 100644 index 4f7f7b2348e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAxes; -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 manage the axes property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AxesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AxesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AxesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AxesRequestBuilder} 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 AxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property axes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents chart axes. Read-only. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get() { - return get(null); - } - /** - * Represents chart axes. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return patch(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAxes} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAxes patch(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAxes::createFromDiscriminatorValue); - } - /** - * Delete navigation property axes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property axes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents chart axes. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents chart axes. Read-only. - * @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 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; - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property axes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAxes body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AxesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AxesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents chart axes. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 7a856b31323..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartDataLabels; -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 manage the dataLabels property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataLabelsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataLabelsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DataLabelsRequestBuilder} 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 DataLabelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property dataLabels for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get() { - return get(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return patch(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartDataLabels} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartDataLabels patch(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartDataLabels::createFromDiscriminatorValue); - } - /** - * Delete navigation property dataLabels for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property dataLabels for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the data labels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the data labels on the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property dataLabels in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartDataLabels body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DataLabelsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataLabelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataLabelsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the data labels on the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java deleted file mode 100644 index 0779668f51e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartAreaFormat; -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 manage the format property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FormatRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FormatRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FormatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FormatRequestBuilder} 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 FormatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property format for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get() { - return get(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return patch(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartAreaFormat} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartAreaFormat patch(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartAreaFormat::createFromDiscriminatorValue); - } - /** - * Delete navigation property format for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property format for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Encapsulates the format properties for the chart area. Read-only. - * @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 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; - } - /** - * Update the navigation property format in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property format in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartAreaFormat body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FormatRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FormatRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Encapsulates the format properties for the chart area. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java deleted file mode 100644 index 9106e2ea2b0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image; - -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 ImageGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageGetResponse} and sets the default values. - */ - public ImageGetResponse() { - 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 ImageGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java deleted file mode 100644 index 560593d6613..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ImageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()", pathParameters); - } - /** - * Instantiates a new {@link ImageRequestBuilder} 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 ImageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index f7f05a6d3ce..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth; - -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 ImageWithWidthGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthGetResponse} and sets the default values. - */ - public ImageWithWidthGetResponse() { - 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 ImageWithWidthGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index ba37580b026..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", pathParameters); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthRequestBuilder} 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 ImageWithWidthRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index a4b3d3a18f5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight; - -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 ImageWithWidthWithHeightGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightGetResponse() { - 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 ImageWithWidthWithHeightGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index b4056dbb478..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} and sets the default values. - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", pathParameters); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightRequestBuilder} 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 ImageWithWidthWithHeightRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 24e6b9cdfda..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode; - -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 ImageWithWidthWithHeightWithFittingModeGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeGetResponse} and sets the default values. - */ - public ImageWithWidthWithHeightWithFittingModeGetResponse() { - 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 ImageWithWidthWithHeightWithFittingModeGetResponse} - */ - @jakarta.annotation.Nonnull - public static ImageWithWidthWithHeightWithFittingModeGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String 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.writeStringValue("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 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 String value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index ec1129b36a0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode; - -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.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 image method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImageWithWidthWithHeightWithFittingModeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} and sets the default values. - * @param fittingMode Usage: fittingMode='{fittingMode}' - * @param height Usage: height={height} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param width Usage: width={width} - */ - public ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String fittingMode, @jakarta.annotation.Nullable final Integer height, @jakarta.annotation.Nullable final Integer width) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters); - this.pathParameters.put("fittingMode", fittingMode); - this.pathParameters.put("height", height); - this.pathParameters.put("width", width); - } - /** - * Instantiates a new {@link ImageWithWidthWithHeightWithFittingModeRequestBuilder} 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl); - } - /** - * Invoke function image - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get() { - return get(null); - } - /** - * Invoke function image - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ImageWithWidthWithHeightWithFittingModeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ImageWithWidthWithHeightWithFittingModeGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ImageWithWidthWithHeightWithFittingModeGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function image - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function image - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ImageWithWidthWithHeightWithFittingModeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java deleted file mode 100644 index ace0c843741..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartLegend; -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 manage the legend property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LegendRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LegendRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LegendRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LegendRequestBuilder} 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 LegendRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property legend for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get() { - return get(null); - } - /** - * Represents the legend for the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return patch(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartLegend} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartLegend patch(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartLegend::createFromDiscriminatorValue); - } - /** - * Delete navigation property legend for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property legend for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the legend for the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the legend for the chart. Read-only. - * @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 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; - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property legend in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartLegend body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 LegendRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LegendRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LegendRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the legend for the chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java deleted file mode 100644 index 2c2251bc74d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartSeries; -import com.microsoft.graph.models.WorkbookChartSeriesCollectionResponse; -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 manage the series property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SeriesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SeriesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SeriesRequestBuilder} 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 SeriesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get() { - return get(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeriesCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeriesCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeriesCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return post(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartSeries} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartSeries post(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartSeries::createFromDiscriminatorValue); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - * @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 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; - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to series for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartSeries body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SeriesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SeriesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SeriesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents either a single series or collection of series in the chart. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java deleted file mode 100644 index ec90c538e92..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -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.serialization.UntypedNode; -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 SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - 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 SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * 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.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - 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 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 seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java deleted file mode 100644 index fbc4e20c95e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -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.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 setData method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetDataRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetDataRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData", pathParameters); - } - /** - * Instantiates a new {@link SetDataRequestBuilder} 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 SetDataRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData", rawUrl); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - post(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Resets the source data for the chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetDataPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetDataRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetDataRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetDataRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index ffc83ca76bb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -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.serialization.UntypedNode; -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 SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - 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 SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * 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("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - 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 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 endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 9c0fa53ad70..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -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.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 setPosition method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SetPositionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SetPositionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition", pathParameters); - } - /** - * Instantiates a new {@link SetPositionRequestBuilder} 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 SetPositionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition", rawUrl); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - post(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetPositionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SetPositionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SetPositionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SetPositionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java deleted file mode 100644 index 935ce2f5be8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookChartTitle; -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 manage the title property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TitleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TitleRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TitleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TitleRequestBuilder} 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 TitleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property title for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get() { - return get(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return patch(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookChartTitle} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookChartTitle patch(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartTitle::createFromDiscriminatorValue); - } - /** - * Delete navigation property title for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property title for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - * @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 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; - } - /** - * Update the navigation property title in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property title in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookChartTitle body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TitleRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TitleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TitleRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index a61c3162de7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookChart entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current chart. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current chart. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java deleted file mode 100644 index 622062de951..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.graph.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.WorkbookNamedItemItemRequestBuilder; -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 manage the names property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NamesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the addFormulaLocal method. - * @return a {@link AddFormulaLocalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddFormulaLocalRequestBuilder addFormulaLocal() { - return new AddFormulaLocalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. - * @param workbookNamedItemId The unique identifier of workbookNamedItem - * @return a {@link WorkbookNamedItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookNamedItemItemRequestBuilder byWorkbookNamedItemId(@jakarta.annotation.Nonnull final String workbookNamedItemId) { - Objects.requireNonNull(workbookNamedItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookNamedItem%2Did", workbookNamedItemId); - return new WorkbookNamedItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link NamesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public NamesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link NamesRequestBuilder} 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 NamesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @return a {@link WorkbookNamedItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItemCollectionResponse get() { - return get(null); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return post(body, null); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @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 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; - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to names for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 NamesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public NamesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new NamesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java deleted file mode 100644 index 2ca05c92074..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * 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.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - 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 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 comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java deleted file mode 100644 index 8f7bb6f0662..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", rawUrl); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index 653a7b2e836..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal; - -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 AddFormulaLocalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddFormulaLocalPostRequestBody} and sets the default values. - */ - public AddFormulaLocalPostRequestBody() { - 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 AddFormulaLocalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddFormulaLocalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddFormulaLocalPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("formula", (n) -> { this.setFormula(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the formula property value. The formula property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getFormula() { - return this.backingStore.get("formula"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * 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.writeStringValue("comment", this.getComment()); - writer.writeStringValue("formula", this.getFormula()); - writer.writeStringValue("name", this.getName()); - 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 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 comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the formula property value. The formula property - * @param value Value to set for the formula property. - */ - public void setFormula(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("formula", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index 294e87d9e2c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 addFormulaLocal method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddFormulaLocalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddFormulaLocalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddFormulaLocalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", pathParameters); - } - /** - * Instantiates a new {@link AddFormulaLocalRequestBuilder} 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 AddFormulaLocalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", rawUrl); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem post(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddFormulaLocalPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddFormulaLocalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddFormulaLocalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddFormulaLocalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java deleted file mode 100644 index 166e5ec5c0d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index a53a6a76dc8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookNamedItem; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.worksheet.WorksheetRequestBuilder; -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 manage the names property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookNamedItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookNamedItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookNamedItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookNamedItemItemRequestBuilder} 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 WorkbookNamedItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property names for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property names for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem get() { - return get(null); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem patch(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return patch(body, null); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookNamedItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookNamedItem patch(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); - } - /** - * Delete navigation property names for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property names for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - * @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 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; - } - /** - * Update the navigation property names in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property names in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookNamedItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookNamedItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookNamedItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookNamedItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns collection of names that are associated with the worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index 2253d4665cf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 75edc8dd431..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookNamedItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java deleted file mode 100644 index fe73871a73a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookPivotTable; -import com.microsoft.graph.models.WorkbookPivotTableCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.WorkbookPivotTableItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.refreshall.RefreshAllRequestBuilder; -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 manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PivotTablesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the refreshAll method. - * @return a {@link RefreshAllRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshAllRequestBuilder refreshAll() { - return new RefreshAllRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. - * @param workbookPivotTableId The unique identifier of workbookPivotTable - * @return a {@link WorkbookPivotTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookPivotTableItemRequestBuilder byWorkbookPivotTableId(@jakarta.annotation.Nonnull final String workbookPivotTableId) { - Objects.requireNonNull(workbookPivotTableId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookPivotTable%2Did", workbookPivotTableId); - return new WorkbookPivotTableItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link PivotTablesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PivotTablesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PivotTablesRequestBuilder} 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 PivotTablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @return a {@link WorkbookPivotTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTableCollectionResponse get() { - return get(null); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookPivotTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTableCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTableCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to pivotTables for storage - * @param body The request body - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable post(@jakarta.annotation.Nonnull final WorkbookPivotTable body) { - return post(body, null); - } - /** - * Create new navigation property to pivotTables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable post(@jakarta.annotation.Nonnull final WorkbookPivotTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTable::createFromDiscriminatorValue); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @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 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; - } - /** - * Create new navigation property to pivotTables for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookPivotTable body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to pivotTables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookPivotTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 PivotTablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PivotTablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PivotTablesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of PivotTables that are part of the worksheet. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java deleted file mode 100644 index 8c384c5536e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java deleted file mode 100644 index 3619c6b33a9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookPivotTable; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh.RefreshRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.worksheet.WorksheetRequestBuilder; -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 manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookPivotTableItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the refresh method. - * @return a {@link RefreshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshRequestBuilder refresh() { - return new RefreshRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookPivotTable entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookPivotTableItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookPivotTableItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookPivotTableItemRequestBuilder} 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 WorkbookPivotTableItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property pivotTables for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property pivotTables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable get() { - return get(null); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTable::createFromDiscriminatorValue); - } - /** - * Update the navigation property pivotTables in storage - * @param body The request body - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable patch(@jakarta.annotation.Nonnull final WorkbookPivotTable body) { - return patch(body, null); - } - /** - * Update the navigation property pivotTables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookPivotTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookPivotTable patch(@jakarta.annotation.Nonnull final WorkbookPivotTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTable::createFromDiscriminatorValue); - } - /** - * Delete navigation property pivotTables for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property pivotTables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Collection of PivotTables that are part of the worksheet. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of PivotTables that are part of the worksheet. - * @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 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; - } - /** - * Update the navigation property pivotTables in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookPivotTable body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property pivotTables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookPivotTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookPivotTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookPivotTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookPivotTableItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Collection of PivotTables that are part of the worksheet. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java deleted file mode 100644 index acc52b8bb81..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh; - -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.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 refresh method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RefreshRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RefreshRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RefreshRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", pathParameters); - } - /** - * Instantiates a new {@link RefreshRequestBuilder} 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 RefreshRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", rawUrl); - } - /** - * Refreshes the PivotTable. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Refreshes the PivotTable. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Refreshes the PivotTable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Refreshes the PivotTable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RefreshRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RefreshRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index a16be35e38a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookPivotTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current PivotTable. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current PivotTable. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current PivotTable. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current PivotTable. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current PivotTable. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java deleted file mode 100644 index 74aff166ee3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.refreshall; - -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.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 refreshAll method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RefreshAllRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RefreshAllRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RefreshAllRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", pathParameters); - } - /** - * Instantiates a new {@link RefreshAllRequestBuilder} 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 RefreshAllRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", rawUrl); - } - /** - * Refreshes the PivotTable within a given worksheet. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Refreshes the PivotTable within a given worksheet. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Refreshes the PivotTable within a given worksheet. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Refreshes the PivotTable within a given worksheet. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RefreshAllRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RefreshAllRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RefreshAllRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java deleted file mode 100644 index 5175677a98e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheetProtection; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect.ProtectRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.unprotect.UnprotectRequestBuilder; -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 manage the protection property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProtectionRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the protect method. - * @return a {@link ProtectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProtectRequestBuilder protect() { - return new ProtectRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the unprotect method. - * @return a {@link UnprotectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnprotectRequestBuilder unprotect() { - return new UnprotectRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ProtectionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ProtectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ProtectionRequestBuilder} 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 ProtectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property protection for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property protection for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Returns sheet protection object for a worksheet. Read-only. - * @return a {@link WorkbookWorksheetProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetProtection get() { - return get(null); - } - /** - * Returns sheet protection object for a worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheetProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetProtection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheetProtection::createFromDiscriminatorValue); - } - /** - * Update the navigation property protection in storage - * @param body The request body - * @return a {@link WorkbookWorksheetProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetProtection patch(@jakarta.annotation.Nonnull final WorkbookWorksheetProtection body) { - return patch(body, null); - } - /** - * Update the navigation property protection in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheetProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetProtection patch(@jakarta.annotation.Nonnull final WorkbookWorksheetProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheetProtection::createFromDiscriminatorValue); - } - /** - * Delete navigation property protection for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property protection for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns sheet protection object for a worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns sheet protection object for a worksheet. Read-only. - * @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 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; - } - /** - * Update the navigation property protection in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheetProtection body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property protection in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookWorksheetProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProtectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ProtectionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Returns sheet protection object for a worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java deleted file mode 100644 index 6862cb2211a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -import com.microsoft.graph.models.WorkbookWorksheetProtectionOptions; -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 ProtectPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProtectPostRequestBody} and sets the default values. - */ - public ProtectPostRequestBody() { - 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 ProtectPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProtectPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProtectPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("options", (n) -> { this.setOptions(n.getObjectValue(WorkbookWorksheetProtectionOptions::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the options property value. The options property - * @return a {@link WorkbookWorksheetProtectionOptions} - */ - @jakarta.annotation.Nullable - public WorkbookWorksheetProtectionOptions getOptions() { - return this.backingStore.get("options"); - } - /** - * 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("options", this.getOptions()); - 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 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 options property value. The options property - * @param value Value to set for the options property. - */ - public void setOptions(@jakarta.annotation.Nullable final WorkbookWorksheetProtectionOptions value) { - this.backingStore.set("options", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java deleted file mode 100644 index 25864a5fcc3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -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.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 protect method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProtectRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ProtectRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ProtectRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", pathParameters); - } - /** - * Instantiates a new {@link ProtectRequestBuilder} 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 ProtectRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", rawUrl); - } - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ProtectPostRequestBody body) { - post(body, null); - } - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ProtectPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProtectPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ProtectPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ProtectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ProtectRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ProtectRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java deleted file mode 100644 index 648e65ceeef..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.unprotect; - -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.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 unprotect method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnprotectRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UnprotectRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UnprotectRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", pathParameters); - } - /** - * Instantiates a new {@link UnprotectRequestBuilder} 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 UnprotectRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", rawUrl); - } - /** - * Unprotect a worksheet - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Unprotect a worksheet - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Unprotect a worksheet - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Unprotect a worksheet - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 UnprotectRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnprotectRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UnprotectRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java deleted file mode 100644 index e28ea1f7b08..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java deleted file mode 100644 index fca32ea9d79..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.rangewithaddress; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeWithAddressRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeWithAddressRequestBuilder} and sets the default values. - * @param address Usage: address='{address}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeWithAddressRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String address) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')", pathParameters); - this.pathParameters.put("address", address); - } - /** - * Instantiates a new {@link RangeWithAddressRequestBuilder} 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 RangeWithAddressRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeWithAddressRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeWithAddressRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeWithAddressRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java deleted file mode 100644 index 9f58900b4c5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the tables property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TablesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. - * @param workbookTableId The unique identifier of workbookTable - * @return a {@link WorkbookTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableItemRequestBuilder byWorkbookTableId(@jakarta.annotation.Nonnull final String workbookTableId) { - Objects.requireNonNull(workbookTableId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTable%2Did", workbookTableId); - return new WorkbookTableItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link TablesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TablesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TablesRequestBuilder} 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 TablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @return a {@link WorkbookTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableCollectionResponse get() { - return get(null); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body) { - return post(body, null); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @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 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; - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to tables for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 TablesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TablesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java deleted file mode 100644 index 4e4aa335e5e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.add; - -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the address property value. The address property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getAddress() { - return this.backingStore.get("address"); - } - /** - * 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("address", (n) -> { this.setAddress(n.getStringValue()); }); - deserializerMap.put("hasHeaders", (n) -> { this.setHasHeaders(n.getBooleanValue()); }); - return deserializerMap; - } - /** - * Gets the hasHeaders property value. The hasHeaders property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getHasHeaders() { - return this.backingStore.get("hasHeaders"); - } - /** - * 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.writeStringValue("address", this.getAddress()); - writer.writeBooleanValue("hasHeaders", this.getHasHeaders()); - 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 value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the address property value. The address property - * @param value Value to set for the address property. - */ - public void setAddress(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("address", 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 hasHeaders property value. The hasHeaders property - * @param value Value to set for the hasHeaders property. - */ - public void setHasHeaders(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("hasHeaders", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java deleted file mode 100644 index b539a12c643..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java deleted file mode 100644 index 87eb137d91b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java deleted file mode 100644 index 7b0c007a8b2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index 4ed200d19f4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.worksheet.WorksheetRequestBuilder; -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 manage the tables property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clearFilters method. - * @return a {@link ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder clearFilters() { - return new ClearFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the convertToRange method. - * @return a {@link ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder convertToRange() { - return new ConvertToRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapplyFilters method. - * @return a {@link ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder reapplyFilters() { - return new ReapplyFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @return a {@link RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder rows() { - return new RowsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. - * @return a {@link SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder sort() { - return new SortRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableItemRequestBuilder} 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 WorkbookTableItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property tables for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property tables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get() { - return get(null); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable patch(@jakarta.annotation.Nonnull final WorkbookTable body) { - return patch(body, null); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable patch(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Delete navigation property tables for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property tables for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of tables that are part of the worksheet. Read-only. - * @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 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; - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property tables in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTable body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Collection of tables that are part of the worksheet. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index d2aa9c18578..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters; - -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.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 clearFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", pathParameters); - } - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} 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 ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", rawUrl); - } - /** - * Clears all the filters currently applied on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears all the filters currently applied on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears all the filters currently applied on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears all the filters currently applied on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 3438f15aba6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @param workbookTableColumnId The unique identifier of workbookTableColumn - * @return a {@link WorkbookTableColumnItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableColumnItemRequestBuilder byWorkbookTableColumnId(@jakarta.annotation.Nonnull final String workbookTableColumnId) { - Objects.requireNonNull(workbookTableColumnId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTableColumn%2Did", workbookTableColumnId); - return new WorkbookTableColumnItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumnCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index 1b88720f97a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - 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 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 index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index 25e24c25194..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", rawUrl); - } - /** - * Adds a new column to the table. - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Adds a new column to the table. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index 1776136a1bf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 1b8eee994de..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index 045711a035e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.totalrowrange.TotalRowRangeRequestBuilder; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableColumnItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. - * @return a {@link FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder filter() { - return new FilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableColumnItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableColumnItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableColumnItemRequestBuilder} 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 WorkbookTableColumnItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property columns for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn patch(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return patch(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn patch(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Delete navigation property columns for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableColumnItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableColumnItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index ce71977b560..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index f8f3464211d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFilter; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.clear.ClearRequestBuilder; -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 manage the filter property of the microsoft.graph.workbookTableColumn entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FilterRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the apply method. - * @return a {@link ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder apply() { - return new ApplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyBottomItemsFilter method. - * @return a {@link ApplyBottomItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomItemsFilterRequestBuilder applyBottomItemsFilter() { - return new ApplyBottomItemsFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyBottomPercentFilter method. - * @return a {@link ApplyBottomPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomPercentFilterRequestBuilder applyBottomPercentFilter() { - return new ApplyBottomPercentFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyCellColorFilter method. - * @return a {@link ApplyCellColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCellColorFilterRequestBuilder applyCellColorFilter() { - return new ApplyCellColorFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyCustomFilter method. - * @return a {@link ApplyCustomFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCustomFilterRequestBuilder applyCustomFilter() { - return new ApplyCustomFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyDynamicFilter method. - * @return a {@link ApplyDynamicFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyDynamicFilterRequestBuilder applyDynamicFilter() { - return new ApplyDynamicFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyFontColorFilter method. - * @return a {@link ApplyFontColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyFontColorFilterRequestBuilder applyFontColorFilter() { - return new ApplyFontColorFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyIconFilter method. - * @return a {@link ApplyIconFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyIconFilterRequestBuilder applyIconFilter() { - return new ApplyIconFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyTopItemsFilter method. - * @return a {@link ApplyTopItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopItemsFilterRequestBuilder applyTopItemsFilter() { - return new ApplyTopItemsFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyTopPercentFilter method. - * @return a {@link ApplyTopPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopPercentFilterRequestBuilder applyTopPercentFilter() { - return new ApplyTopPercentFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the applyValuesFilter method. - * @return a {@link ApplyValuesFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyValuesFilterRequestBuilder applyValuesFilter() { - return new ApplyValuesFilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link FilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FilterRequestBuilder} 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 FilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property filter for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get() { - return get(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return patch(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Delete navigation property filter for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @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 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; - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Retrieve the filter applied to the column. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index 33fec520a8e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.models.WorkbookFilterCriteria; -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 ApplyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyPostRequestBody} and sets the default values. - */ - public ApplyPostRequestBody() { - 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 ApplyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link WorkbookFilterCriteria} - */ - @jakarta.annotation.Nullable - public WorkbookFilterCriteria getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(WorkbookFilterCriteria::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * 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("criteria", this.getCriteria()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final WorkbookFilterCriteria value) { - this.backingStore.set("criteria", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index 29733260ceb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -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.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 apply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", pathParameters); - } - /** - * Instantiates a new {@link ApplyRequestBuilder} 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 ApplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - post(body, null); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Apply the given filter criteria on the given column. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index 0ff028c267d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter; - -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 ApplyBottomItemsFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyBottomItemsFilterPostRequestBody} and sets the default values. - */ - public ApplyBottomItemsFilterPostRequestBody() { - 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 ApplyBottomItemsFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyBottomItemsFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyBottomItemsFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the count property value. The count property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getCount() { - return this.backingStore.get("count"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("count", (n) -> { this.setCount(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * 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.writeIntegerValue("count", this.getCount()); - 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 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 count property value. The count property - * @param value Value to set for the count property. - */ - public void setCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("count", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index 0306b8dd49e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter; - -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.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 applyBottomItemsFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyBottomItemsFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyBottomItemsFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyBottomItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyBottomItemsFilterRequestBuilder} 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 ApplyBottomItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", rawUrl); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyBottomItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyBottomItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomItemsFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyBottomItemsFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index 31dab2518b5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter; - -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 ApplyBottomPercentFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyBottomPercentFilterPostRequestBody} and sets the default values. - */ - public ApplyBottomPercentFilterPostRequestBody() { - 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 ApplyBottomPercentFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyBottomPercentFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyBottomPercentFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getPercent() { - return this.backingStore.get("percent"); - } - /** - * 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.writeIntegerValue("percent", this.getPercent()); - 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 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 percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index 30d938a3925..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter; - -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.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 applyBottomPercentFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyBottomPercentFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyBottomPercentFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyBottomPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyBottomPercentFilterRequestBuilder} 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 ApplyBottomPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", rawUrl); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyBottomPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyBottomPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyBottomPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyBottomPercentFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyBottomPercentFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index b116f768256..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter; - -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 ApplyCellColorFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyCellColorFilterPostRequestBody} and sets the default values. - */ - public ApplyCellColorFilterPostRequestBody() { - 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 ApplyCellColorFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyCellColorFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyCellColorFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index 85f7c24f51b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter; - -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.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 applyCellColorFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyCellColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyCellColorFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyCellColorFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyCellColorFilterRequestBuilder} 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 ApplyCellColorFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", rawUrl); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyCellColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCellColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyCellColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCellColorFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyCellColorFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index ac7131c934a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter; - -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 ApplyCustomFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyCustomFilterPostRequestBody} and sets the default values. - */ - public ApplyCustomFilterPostRequestBody() { - 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 ApplyCustomFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyCustomFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyCustomFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria1 property value. The criteria1 property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria1() { - return this.backingStore.get("criteria1"); - } - /** - * Gets the criteria2 property value. The criteria2 property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria2() { - return this.backingStore.get("criteria2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria1", (n) -> { this.setCriteria1(n.getStringValue()); }); - deserializerMap.put("criteria2", (n) -> { this.setCriteria2(n.getStringValue()); }); - deserializerMap.put("oper", (n) -> { this.setOper(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the oper property value. The oper property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getOper() { - return this.backingStore.get("oper"); - } - /** - * 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.writeStringValue("criteria1", this.getCriteria1()); - writer.writeStringValue("criteria2", this.getCriteria2()); - writer.writeStringValue("oper", this.getOper()); - 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 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 criteria1 property value. The criteria1 property - * @param value Value to set for the criteria1 property. - */ - public void setCriteria1(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria1", value); - } - /** - * Sets the criteria2 property value. The criteria2 property - * @param value Value to set for the criteria2 property. - */ - public void setCriteria2(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria2", value); - } - /** - * Sets the oper property value. The oper property - * @param value Value to set for the oper property. - */ - public void setOper(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("oper", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index 2a9a29d9f13..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter; - -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.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 applyCustomFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyCustomFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyCustomFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyCustomFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyCustomFilterRequestBuilder} 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 ApplyCustomFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", rawUrl); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyCustomFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyCustomFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyCustomFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyCustomFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyCustomFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index 214cac5ac23..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter; - -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 ApplyDynamicFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyDynamicFilterPostRequestBody} and sets the default values. - */ - public ApplyDynamicFilterPostRequestBody() { - 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 ApplyDynamicFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyDynamicFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyDynamicFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("criteria", this.getCriteria()); - 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 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 criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("criteria", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index 397da918d9f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter; - -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.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 applyDynamicFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyDynamicFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyDynamicFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyDynamicFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyDynamicFilterRequestBuilder} 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 ApplyDynamicFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", rawUrl); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyDynamicFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyDynamicFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyDynamicFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyDynamicFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index a3974fe41da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter; - -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 ApplyFontColorFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyFontColorFilterPostRequestBody} and sets the default values. - */ - public ApplyFontColorFilterPostRequestBody() { - 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 ApplyFontColorFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyFontColorFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyFontColorFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the color property value. The color property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getColor() { - return this.backingStore.get("color"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("color", (n) -> { this.setColor(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("color", this.getColor()); - 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 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 color property value. The color property - * @param value Value to set for the color property. - */ - public void setColor(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("color", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index a0fce1fc129..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter; - -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.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 applyFontColorFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyFontColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyFontColorFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyFontColorFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyFontColorFilterRequestBuilder} 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 ApplyFontColorFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", rawUrl); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyFontColorFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyFontColorFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyFontColorFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyFontColorFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 95ce0c61b1e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.models.WorkbookIcon; -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 ApplyIconFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyIconFilterPostRequestBody} and sets the default values. - */ - public ApplyIconFilterPostRequestBody() { - 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 ApplyIconFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyIconFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyIconFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("icon", (n) -> { this.setIcon(n.getObjectValue(WorkbookIcon::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the icon property value. The icon property - * @return a {@link WorkbookIcon} - */ - @jakarta.annotation.Nullable - public WorkbookIcon getIcon() { - return this.backingStore.get("icon"); - } - /** - * 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("icon", this.getIcon()); - 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 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 icon property value. The icon property - * @param value Value to set for the icon property. - */ - public void setIcon(@jakarta.annotation.Nullable final WorkbookIcon value) { - this.backingStore.set("icon", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index 500f29e2f6f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -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.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 applyIconFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyIconFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyIconFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyIconFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyIconFilterRequestBuilder} 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 ApplyIconFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", rawUrl); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyIconFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyIconFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyIconFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyIconFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyIconFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index 598aeef568e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter; - -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 ApplyTopItemsFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyTopItemsFilterPostRequestBody} and sets the default values. - */ - public ApplyTopItemsFilterPostRequestBody() { - 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 ApplyTopItemsFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyTopItemsFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyTopItemsFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the count property value. The count property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getCount() { - return this.backingStore.get("count"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("count", (n) -> { this.setCount(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * 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.writeIntegerValue("count", this.getCount()); - 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 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 count property value. The count property - * @param value Value to set for the count property. - */ - public void setCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("count", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index b13ed9839f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter; - -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.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 applyTopItemsFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyTopItemsFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyTopItemsFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyTopItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyTopItemsFilterRequestBuilder} 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 ApplyTopItemsFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", rawUrl); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyTopItemsFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopItemsFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyTopItemsFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopItemsFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyTopItemsFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index 7f4cbfe0716..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter; - -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 ApplyTopPercentFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyTopPercentFilterPostRequestBody} and sets the default values. - */ - public ApplyTopPercentFilterPostRequestBody() { - 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 ApplyTopPercentFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyTopPercentFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyTopPercentFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getPercent() { - return this.backingStore.get("percent"); - } - /** - * 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.writeIntegerValue("percent", this.getPercent()); - 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 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 percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index 2101d21265f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter; - -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.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 applyTopPercentFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyTopPercentFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyTopPercentFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyTopPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyTopPercentFilterRequestBuilder} 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 ApplyTopPercentFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", rawUrl); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyTopPercentFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyTopPercentFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyTopPercentFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyTopPercentFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyTopPercentFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index ea00f7aa7a0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -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.serialization.UntypedNode; -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 ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - 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 ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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("values", this.getValues()); - 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 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 values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index 26e5b4a23fc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -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.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 applyValuesFilter method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyValuesFilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyValuesFilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", pathParameters); - } - /** - * Instantiates a new {@link ApplyValuesFilterRequestBuilder} 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 ApplyValuesFilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", rawUrl); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body) { - post(body, null); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action applyValuesFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyValuesFilterPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyValuesFilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyValuesFilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyValuesFilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index f2e750c8314..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl); - } - /** - * Clear the filter on the given column. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clear the filter on the given column. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clear the filter on the given column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clear the filter on the given column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index b04e8ea2b79..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the header row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the header row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index 9ad2abd3ce7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the entire column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the entire column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 1faea9f33f9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 3b99d127a7b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. - * @return a {@link FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder filter() { - return new FilterRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})", rawUrl); - } - /** - * Gets a column based on its position in the collection. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get() { - return get(null); - } - /** - * Gets a column based on its position in the collection. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Gets a column based on its position in the collection. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets a column based on its position in the collection. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 613fba85155..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index b2b50ba2c8d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookFilter; -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 manage the filter property of the microsoft.graph.workbookTableColumn entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FilterRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FilterRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FilterRequestBuilder} 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 FilterRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property filter for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get() { - return get(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return patch(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookFilter} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookFilter patch(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookFilter::createFromDiscriminatorValue); - } - /** - * Delete navigation property filter for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property filter for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Retrieve the filter applied to the column. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the filter applied to the column. Read-only. - * @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 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; - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property filter in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookFilter body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FilterRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FilterRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Retrieve the filter applied to the column. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index fd133243ea4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the header row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the header row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the header row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index d6f691ee6c9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", rawUrl); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the entire column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the entire column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the entire column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 9a4ae7e3d0f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the totals row of the column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the totals row of the column. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 0a4c9b6f6c0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 convertToRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertToRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", pathParameters); - } - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} 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 ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", rawUrl); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post() { - return post(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConvertToRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 9eaef6c0001..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index a5f0ba6fa03..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with header row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with header row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index 7bc30b60f07..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", rawUrl); - } - /** - * Get the range object associated with the entire table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Get the range object associated with the entire table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Get the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the range object associated with the entire table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index cef8846c78d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters; - -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.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 reapplyFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", pathParameters); - } - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} 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 ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", rawUrl); - } - /** - * Reapplies all the filters currently on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies all the filters currently on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies all the filters currently on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies all the filters currently on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index 19a32a24bca..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex.ItemAtWithIndexRequestBuilder; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the add method. - * @return a {@link AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder add() { - return new AddRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the count method. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @param workbookTableRowId The unique identifier of workbookTableRow - * @return a {@link WorkbookTableRowItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableRowItemRequestBuilder byWorkbookTableRowId(@jakarta.annotation.Nonnull final String workbookTableRowId) { - Objects.requireNonNull(workbookTableRowId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookTableRow%2Did", workbookTableRowId); - return new WorkbookTableRowItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link RowsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RowsRequestBuilder} 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 RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRowCollectionResponse::createFromDiscriminatorValue); - } - /** - * Provides operations to call the itemAt method. - * @param index Usage: index={index} - * @return a {@link ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder itemAtWithIndex(@jakarta.annotation.Nonnull final Integer index) { - Objects.requireNonNull(index); - return new ItemAtWithIndexRequestBuilder(pathParameters, requestAdapter, index); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return post(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RowsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index 30aba75e652..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -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.serialization.UntypedNode; -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 AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - 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 AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * 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.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - 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 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 index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index b837bcef31b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} 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 AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", rawUrl); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index a6f740683d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count; - -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 CountGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountGetResponse} and sets the default values. - */ - public CountGetResponse() { - 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 CountGetResponse} - */ - @jakarta.annotation.Nonnull - public static CountGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer 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.writeIntegerValue("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 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 Integer value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index b7861139329..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count; - -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.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 count method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()", rawUrl); - } - /** - * Invoke function count - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get() { - return get(null); - } - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CountGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public CountGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CountGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function count - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function count - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index b89f1d59d45..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.range.RangeRequestBuilder; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookTableRowItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookTableRowItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookTableRowItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookTableRowItemRequestBuilder} 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 WorkbookTableRowItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property rows for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property rows for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow patch(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return patch(body, null); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow patch(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Delete navigation property rows for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property rows for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property rows in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 WorkbookTableRowItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookTableRowItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index 0a03cd1a26a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 584540f8775..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})", rawUrl); - } - /** - * Gets a row based on its position in the collection. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Gets a row based on its position in the collection. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Gets a row based on its position in the collection. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets a row based on its position in the collection. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index ea2de85bc1f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl); - } - /** - * Invoke function range - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function range - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function range - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function range - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index 8af5709169d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableSort; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.reapply.ReapplyRequestBuilder; -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 manage the sort property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SortRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the apply method. - * @return a {@link ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder apply() { - return new ApplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the clear method. - * @return a {@link ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder clear() { - return new ClearRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapply method. - * @return a {@link ReapplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyRequestBuilder reapply() { - return new ReapplyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link SortRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SortRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SortRequestBuilder} 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 SortRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property sort for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get() { - return get(null); - } - /** - * Represents the sorting for the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return patch(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Delete navigation property sort for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the sorting for the table. Read-only. - * @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 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; - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SortRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the sorting for the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index 8a14cf40860..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -import com.microsoft.graph.models.WorkbookSortField; -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 ApplyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyPostRequestBody} and sets the default values. - */ - public ApplyPostRequestBody() { - 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 ApplyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fields", (n) -> { this.setFields(n.getCollectionOfObjectValues(WorkbookSortField::createFromDiscriminatorValue)); }); - deserializerMap.put("matchCase", (n) -> { this.setMatchCase(n.getBooleanValue()); }); - deserializerMap.put("method", (n) -> { this.setMethod(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the fields property value. The fields property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getFields() { - return this.backingStore.get("fields"); - } - /** - * Gets the matchCase property value. The matchCase property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getMatchCase() { - return this.backingStore.get("matchCase"); - } - /** - * Gets the method property value. The method property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMethod() { - return this.backingStore.get("method"); - } - /** - * 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.writeCollectionOfObjectValues("fields", this.getFields()); - writer.writeBooleanValue("matchCase", this.getMatchCase()); - writer.writeStringValue("method", this.getMethod()); - 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 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 fields property value. The fields property - * @param value Value to set for the fields property. - */ - public void setFields(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("fields", value); - } - /** - * Sets the matchCase property value. The matchCase property - * @param value Value to set for the matchCase property. - */ - public void setMatchCase(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("matchCase", value); - } - /** - * Sets the method property value. The method property - * @param value Value to set for the method property. - */ - public void setMethod(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("method", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index ab9eaa640f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -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.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 apply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ApplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ApplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", pathParameters); - } - /** - * Instantiates a new {@link ApplyRequestBuilder} 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 ApplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", rawUrl); - } - /** - * Perform a sort operation. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - post(body, null); - } - /** - * Perform a sort operation. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Perform a sort operation. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Perform a sort operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ApplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ApplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ApplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ApplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index bf1da76da01..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear; - -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.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 clear method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", pathParameters); - } - /** - * Instantiates a new {@link ClearRequestBuilder} 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 ClearRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", rawUrl); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index 733200bde1f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.reapply; - -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.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 reapply method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", pathParameters); - } - /** - * Instantiates a new {@link ReapplyRequestBuilder} 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 ReapplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", rawUrl); - } - /** - * Reapplies the current sorting parameters to the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies the current sorting parameters to the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies the current sorting parameters to the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies the current sorting parameters to the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index e75b34bc8b4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with totals row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with totals row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 135d3c470b1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current table. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 0976d2c4fd6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTable; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.worksheet.WorksheetRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 itemAt method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the clearFilters method. - * @return a {@link ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder clearFilters() { - return new ClearFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the convertToRange method. - * @return a {@link ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder convertToRange() { - return new ConvertToRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the dataBodyRange method. - * @return a {@link DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder dataBodyRange() { - return new DataBodyRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the headerRowRange method. - * @return a {@link HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder headerRowRange() { - return new HeaderRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the range method. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder range() { - return new RangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the reapplyFilters method. - * @return a {@link ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder reapplyFilters() { - return new ReapplyFiltersRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. - * @return a {@link RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder rows() { - return new RowsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. - * @return a {@link SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder sort() { - return new SortRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the totalRowRange method. - * @return a {@link TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder totalRowRange() { - return new TotalRowRangeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. - * @return a {@link WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder worksheet() { - return new WorksheetRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} and sets the default values. - * @param index Usage: index={index} - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Integer index) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})", pathParameters); - this.pathParameters.put("index", index); - } - /** - * Instantiates a new {@link ItemAtWithIndexRequestBuilder} 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 ItemAtWithIndexRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTable get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Invoke function itemAt - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function itemAt - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 ItemAtWithIndexRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemAtWithIndexRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemAtWithIndexRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 481a72c1ce9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters; - -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.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 clearFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ClearFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters", pathParameters); - } - /** - * Instantiates a new {@link ClearFiltersRequestBuilder} 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 ClearFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters", rawUrl); - } - /** - * Clears all the filters currently applied on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Clears all the filters currently applied on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Clears all the filters currently applied on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Clears all the filters currently applied on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ClearFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ClearFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ClearFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 152a3afbd69..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableColumn; -import com.microsoft.graph.models.WorkbookTableColumnCollectionResponse; -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 manage the columns property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumnCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumnCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumnCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableColumn} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the columns in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableColumn body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the columns in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index b91d8ab6065..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 convertToRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertToRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange", pathParameters); - } - /** - * Instantiates a new {@link ConvertToRangeRequestBuilder} 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 ConvertToRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange", rawUrl); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post() { - return post(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Converts the table into a normal range of cells. All data is preserved. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ConvertToRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ConvertToRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ConvertToRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index b60024a1ef6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 dataBodyRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DataBodyRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()", pathParameters); - } - /** - * Instantiates a new {@link DataBodyRangeRequestBuilder} 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 DataBodyRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()", rawUrl); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with the data body of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with the data body of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with the data body of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 DataBodyRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DataBodyRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DataBodyRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 3d55692326a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 headerRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()", pathParameters); - } - /** - * Instantiates a new {@link HeaderRowRangeRequestBuilder} 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 HeaderRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()", rawUrl); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with header row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with header row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with header row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 HeaderRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public HeaderRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new HeaderRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 6d22d71c736..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} 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 RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", rawUrl); - } - /** - * Get the range object associated with the entire table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Get the range object associated with the entire table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Get the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the range object associated with the entire table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index 65acb0fe898..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters; - -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.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 reapplyFilters method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters", pathParameters); - } - /** - * Instantiates a new {@link ReapplyFiltersRequestBuilder} 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 ReapplyFiltersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters", rawUrl); - } - /** - * Reapplies all the filters currently on the table. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reapplies all the filters currently on the table. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reapplies all the filters currently on the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reapplies all the filters currently on the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReapplyFiltersRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReapplyFiltersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReapplyFiltersRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index e23280e4fd6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableRow; -import com.microsoft.graph.models.WorkbookTableRowCollectionResponse; -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 manage the rows property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RowsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RowsRequestBuilder} 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 RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get() { - return get(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRowCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRowCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return post(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents a collection of all the rows in the table. Read-only. - * @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 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; - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to rows for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableRow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RowsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RowsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Represents a collection of all the rows in the table. Read-only. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index e433c5b6dc1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookTableSort; -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 manage the sort property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SortRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SortRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SortRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SortRequestBuilder} 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 SortRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property sort for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get() { - return get(null); - } - /** - * Represents the sorting for the table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return patch(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTableSort} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableSort patch(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableSort::createFromDiscriminatorValue); - } - /** - * Delete navigation property sort for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property sort for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Represents the sorting for the table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the sorting for the table. Read-only. - * @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 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; - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property sort in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookTableSort body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SortRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SortRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Represents the sorting for the table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 44d69011bfc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 totalRowRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TotalRowRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()", pathParameters); - } - /** - * Instantiates a new {@link TotalRowRangeRequestBuilder} 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 TotalRowRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()", rawUrl); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Gets the range object associated with totals row of the table. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Gets the range object associated with totals row of the table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets the range object associated with totals row of the table. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 TotalRowRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TotalRowRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TotalRowRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 361507489f0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.worksheet; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookWorksheet; -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 manage the worksheet property of the microsoft.graph.workbookTable entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorksheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorksheetRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorksheetRequestBuilder} 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 WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get() { - return get(null); - } - /** - * The worksheet containing the current table. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookWorksheet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); - } - /** - * The worksheet containing the current table. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The worksheet containing the current table. Read-only. - * @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 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 WorksheetRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorksheetRequestBuilder(rawUrl, requestAdapter); - } - /** - * The worksheet containing the current table. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java deleted file mode 100644 index ff18ddff1ad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrange; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 usedRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UsedRangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UsedRangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UsedRangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()", pathParameters); - } - /** - * Instantiates a new {@link UsedRangeRequestBuilder} 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 UsedRangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()", rawUrl); - } - /** - * Invoke function usedRange - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function usedRange - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function usedRange - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function usedRange - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 UsedRangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsedRangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UsedRangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java deleted file mode 100644 index bcb1b6c4bea..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrangewithvaluesonly; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 usedRange method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UsedRangeWithValuesOnlyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UsedRangeWithValuesOnlyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param valuesOnly Usage: valuesOnly={valuesOnly} - */ - public UsedRangeWithValuesOnlyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final Boolean valuesOnly) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})", pathParameters); - this.pathParameters.put("valuesOnly", valuesOnly); - } - /** - * Instantiates a new {@link UsedRangeWithValuesOnlyRequestBuilder} 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 UsedRangeWithValuesOnlyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})", rawUrl); - } - /** - * Invoke function usedRange - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Invoke function usedRange - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Invoke function usedRange - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function usedRange - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 UsedRangeWithValuesOnlyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UsedRangeWithValuesOnlyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UsedRangeWithValuesOnlyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index f3fe38302b4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index c0ee552d843..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/lastModifiedByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index cf787359aa7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index cd28e12c234..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java deleted file mode 100644 index b53c6c9ee58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java +++ /dev/null @@ -1,300 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list; - -import com.microsoft.graph.models.List; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.drive.DriveRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.ItemsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations.OperationsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.SubscriptionsRequestBuilder; -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 manage the list property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the columns property of the microsoft.graph.list entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.list entity. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder contentTypes() { - return new ContentTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drive property of the microsoft.graph.list entity. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder drive() { - return new DriveRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.list entity. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder items() { - return new ItemsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.list entity. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder operations() { - return new OperationsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the subscriptions property of the microsoft.graph.list entity. - * @return a {@link SubscriptionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionsRequestBuilder subscriptions() { - return new SubscriptionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ListRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ListRequestBuilder} 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 ListRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property list for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property list for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * For drives in SharePoint, the underlying document library list. Read-only. Nullable. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List get() { - return get(null); - } - /** - * For drives in SharePoint, the underlying document library list. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * Update the navigation property list in storage - * @param body The request body - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List patch(@jakarta.annotation.Nonnull final List body) { - return patch(body, null); - } - /** - * Update the navigation property list in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List patch(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * Delete navigation property list for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property list for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * For drives in SharePoint, the underlying document library list. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * For drives in SharePoint, the underlying document library list. Read-only. Nullable. - * @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 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; - } - /** - * Update the navigation property list in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final List body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property list in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ListRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * For drives in SharePoint, the underlying document library list. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 47e98e32d3d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.item.ColumnDefinitionItemRequestBuilder; -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 manage the columns property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.list entity. - * @param columnDefinitionId The unique identifier of columnDefinition - * @return a {@link ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder byColumnDefinitionId(@jakarta.annotation.Nonnull final String columnDefinitionId) { - Objects.requireNonNull(columnDefinitionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("columnDefinition%2Did", columnDefinitionId); - return new ColumnDefinitionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of field definitions for this list. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of field definitions for this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of field definitions for this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of field definitions for this list. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of field definitions for this list. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java deleted file mode 100644 index 4a47fa5e47c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 6d73c0bf46e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.item; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.item.sourcecolumn.SourceColumnRequestBuilder; -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 manage the columns property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnDefinitionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. - * @return a {@link SourceColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SourceColumnRequestBuilder sourceColumn() { - return new SourceColumnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} 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 ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property columns for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The collection of field definitions for this list. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get() { - return get(null); - } - /** - * The collection of field definitions for this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition patch(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return patch(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition patch(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * Delete navigation property columns for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The collection of field definitions for this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of field definitions for this list. - * @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 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; - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnDefinitionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The collection of field definitions for this list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index 2a912c8a135..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.columns.item.sourcecolumn; - -import com.microsoft.graph.models.ColumnDefinition; -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 manage the sourceColumn property of the microsoft.graph.columnDefinition entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SourceColumnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SourceColumnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SourceColumnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SourceColumnRequestBuilder} 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 SourceColumnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl); - } - /** - * The source column for the content type column. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get() { - return get(null); - } - /** - * The source column for the content type column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The source column for the content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for the content type column. - * @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 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 SourceColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SourceColumnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SourceColumnRequestBuilder(rawUrl, requestAdapter); - } - /** - * The source column for the content type column. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index b498d642f70..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,270 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes; - -import com.microsoft.graph.models.ContentType; -import com.microsoft.graph.models.ContentTypeCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopy.AddCopyRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopyfromcontenttypehub.AddCopyFromContentTypeHubRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes.GetCompatibleHubContentTypesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.ContentTypeItemRequestBuilder; -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 manage the contentTypes property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the addCopy method. - * @return a {@link AddCopyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddCopyRequestBuilder addCopy() { - return new AddCopyRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the addCopyFromContentTypeHub method. - * @return a {@link AddCopyFromContentTypeHubRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddCopyFromContentTypeHubRequestBuilder addCopyFromContentTypeHub() { - return new AddCopyFromContentTypeHubRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the getCompatibleHubContentTypes method. - * @return a {@link GetCompatibleHubContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetCompatibleHubContentTypesRequestBuilder getCompatibleHubContentTypes() { - return new GetCompatibleHubContentTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.list entity. - * @param contentTypeId The unique identifier of contentType - * @return a {@link ContentTypeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypeItemRequestBuilder byContentTypeId(@jakarta.annotation.Nonnull final String contentTypeId) { - Objects.requireNonNull(contentTypeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("contentType%2Did", contentTypeId); - return new ContentTypeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} 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 ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types present in this list. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types present in this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to contentTypes for storage - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body) { - return post(body, null); - } - /** - * Create new navigation property to contentTypes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types present in this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types present in this list. - * @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 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; - } - /** - * Create new navigation property to contentTypes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to contentTypes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types present in this list. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java deleted file mode 100644 index 7ab2da2c5d7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopy; - -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 AddCopyPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddCopyPostRequestBody} and sets the default values. - */ - public AddCopyPostRequestBody() { - 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 AddCopyPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddCopyPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddCopyPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the contentType property value. The contentType property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getContentType() { - return this.backingStore.get("contentType"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("contentType", (n) -> { this.setContentType(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("contentType", this.getContentType()); - 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 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 contentType property value. The contentType property - * @param value Value to set for the contentType property. - */ - public void setContentType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("contentType", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java deleted file mode 100644 index 5484e7be6f9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopy; - -import com.microsoft.graph.models.ContentType; -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.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 addCopy method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddCopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddCopyRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddCopyRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopy", pathParameters); - } - /** - * Instantiates a new {@link AddCopyRequestBuilder} 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 AddCopyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopy", rawUrl); - } - /** - * Add a copy of a content type from a site to a list. - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final AddCopyPostRequestBody body) { - return post(body, null); - } - /** - * Add a copy of a content type from a site to a list. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final AddCopyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * Add a copy of a content type from a site to a list. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddCopyPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Add a copy of a content type from a site to a list. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddCopyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddCopyRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddCopyRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddCopyRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java deleted file mode 100644 index 097020a6ff2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopyfromcontenttypehub; - -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 AddCopyFromContentTypeHubPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddCopyFromContentTypeHubPostRequestBody} and sets the default values. - */ - public AddCopyFromContentTypeHubPostRequestBody() { - 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 AddCopyFromContentTypeHubPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddCopyFromContentTypeHubPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddCopyFromContentTypeHubPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the contentTypeId property value. The contentTypeId property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getContentTypeId() { - return this.backingStore.get("contentTypeId"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("contentTypeId", (n) -> { this.setContentTypeId(n.getStringValue()); }); - return deserializerMap; - } - /** - * 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.writeStringValue("contentTypeId", this.getContentTypeId()); - 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 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 contentTypeId property value. The contentTypeId property - * @param value Value to set for the contentTypeId property. - */ - public void setContentTypeId(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("contentTypeId", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java deleted file mode 100644 index 32251dd87b8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.addcopyfromcontenttypehub; - -import com.microsoft.graph.models.ContentType; -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.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 addCopyFromContentTypeHub method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddCopyFromContentTypeHubRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddCopyFromContentTypeHubRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopyFromContentTypeHub", pathParameters); - } - /** - * Instantiates a new {@link AddCopyFromContentTypeHubRequestBuilder} 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 AddCopyFromContentTypeHubRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopyFromContentTypeHub", rawUrl); - } - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates August 2021. - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final AddCopyFromContentTypeHubPostRequestBody body) { - return post(body, null); - } - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final AddCopyFromContentTypeHubPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates August 2021. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddCopyFromContentTypeHubPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddCopyFromContentTypeHubPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AddCopyFromContentTypeHubRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AddCopyFromContentTypeHubRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java deleted file mode 100644 index 332c5f8d6b8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java deleted file mode 100644 index c4ad151cf61..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.ContentType; -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 GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GetCompatibleHubContentTypesGetResponse} and sets the default values. - */ - public GetCompatibleHubContentTypesGetResponse() { - 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 GetCompatibleHubContentTypesGetResponse} - */ - @jakarta.annotation.Nonnull - public static GetCompatibleHubContentTypesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GetCompatibleHubContentTypesGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ContentType::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java deleted file mode 100644 index 198736e837e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -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 getCompatibleHubContentTypes method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetCompatibleHubContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetCompatibleHubContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetCompatibleHubContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link GetCompatibleHubContentTypesRequestBuilder} 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 GetCompatibleHubContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @return a {@link GetCompatibleHubContentTypesGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetCompatibleHubContentTypesGetResponse get() { - return get(null); - } - /** - * Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GetCompatibleHubContentTypesGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetCompatibleHubContentTypesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GetCompatibleHubContentTypesGetResponse::createFromDiscriminatorValue); - } - /** - * Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @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 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 GetCompatibleHubContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetCompatibleHubContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetCompatibleHubContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index db6133240e5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item; - -import com.microsoft.graph.models.ContentType; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.associatewithhubsites.AssociateWithHubSitesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.BaseTypesRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.ColumnLinksRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.ColumnPositionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation.CopyToDefaultContentLocationRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.ispublished.IsPublishedRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.publish.PublishRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.unpublish.UnpublishRequestBuilder; -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 manage the contentTypes property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypeItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the associateWithHubSites method. - * @return a {@link AssociateWithHubSitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AssociateWithHubSitesRequestBuilder associateWithHubSites() { - return new AssociateWithHubSitesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the base property of the microsoft.graph.contentType entity. - * @return a {@link BaseRequestBuilderEscaped} - */ - @jakarta.annotation.Nonnull - public BaseRequestBuilderEscaped base() { - return new BaseRequestBuilderEscaped(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. - * @return a {@link BaseTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BaseTypesRequestBuilder baseTypes() { - return new BaseTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. - * @return a {@link ColumnLinksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnLinksRequestBuilder columnLinks() { - return new ColumnLinksRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. - * @return a {@link ColumnPositionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnPositionsRequestBuilder columnPositions() { - return new ColumnPositionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.contentType entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the copyToDefaultContentLocation method. - * @return a {@link CopyToDefaultContentLocationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CopyToDefaultContentLocationRequestBuilder copyToDefaultContentLocation() { - return new CopyToDefaultContentLocationRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the isPublished method. - * @return a {@link IsPublishedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsPublishedRequestBuilder isPublished() { - return new IsPublishedRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the publish method. - * @return a {@link PublishRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PublishRequestBuilder publish() { - return new PublishRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the unpublish method. - * @return a {@link UnpublishRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnpublishRequestBuilder unpublish() { - return new UnpublishRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ContentTypeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypeItemRequestBuilder} 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 ContentTypeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property contentTypes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property contentTypes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The collection of content types present in this list. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get() { - return get(null); - } - /** - * The collection of content types present in this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * Update the navigation property contentTypes in storage - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType patch(@jakarta.annotation.Nonnull final ContentType body) { - return patch(body, null); - } - /** - * Update the navigation property contentTypes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType patch(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * Delete navigation property contentTypes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property contentTypes for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The collection of content types present in this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types present in this list. - * @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 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; - } - /** - * Update the navigation property contentTypes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property contentTypes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ContentTypeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypeItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The collection of content types present in this list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java deleted file mode 100644 index 4a93a963389..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.associatewithhubsites; - -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 AssociateWithHubSitesPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AssociateWithHubSitesPostRequestBody} and sets the default values. - */ - public AssociateWithHubSitesPostRequestBody() { - 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 AssociateWithHubSitesPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AssociateWithHubSitesPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AssociateWithHubSitesPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("hubSiteUrls", (n) -> { this.setHubSiteUrls(n.getCollectionOfPrimitiveValues(String.class)); }); - deserializerMap.put("propagateToExistingLists", (n) -> { this.setPropagateToExistingLists(n.getBooleanValue()); }); - return deserializerMap; - } - /** - * Gets the hubSiteUrls property value. The hubSiteUrls property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getHubSiteUrls() { - return this.backingStore.get("hubSiteUrls"); - } - /** - * Gets the propagateToExistingLists property value. The propagateToExistingLists property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getPropagateToExistingLists() { - return this.backingStore.get("propagateToExistingLists"); - } - /** - * 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.writeCollectionOfPrimitiveValues("hubSiteUrls", this.getHubSiteUrls()); - writer.writeBooleanValue("propagateToExistingLists", this.getPropagateToExistingLists()); - 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 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 hubSiteUrls property value. The hubSiteUrls property - * @param value Value to set for the hubSiteUrls property. - */ - public void setHubSiteUrls(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("hubSiteUrls", value); - } - /** - * Sets the propagateToExistingLists property value. The propagateToExistingLists property - * @param value Value to set for the propagateToExistingLists property. - */ - public void setPropagateToExistingLists(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("propagateToExistingLists", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java deleted file mode 100644 index 81229db62bc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.associatewithhubsites; - -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.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 associateWithHubSites method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AssociateWithHubSitesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AssociateWithHubSitesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/associateWithHubSites", pathParameters); - } - /** - * Instantiates a new {@link AssociateWithHubSitesRequestBuilder} 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 AssociateWithHubSitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl); - } - /** - * Associate a published content type present in a content type hub with a list of hub sites. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final AssociateWithHubSitesPostRequestBody body) { - post(body, null); - } - /** - * Associate a published content type present in a content type hub with a list of hub sites. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final AssociateWithHubSitesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Associate a published content type present in a content type hub with a list of hub sites. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssociateWithHubSitesPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Associate a published content type present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AssociateWithHubSitesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 AssociateWithHubSitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AssociateWithHubSitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AssociateWithHubSitesRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index 6c273958fc4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.base; - -import com.microsoft.graph.models.ContentType; -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 manage the base property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BaseRequestBuilderEscaped extends BaseRequestBuilder { - /** - * Instantiates a new {@link BaseRequestBuilderEscaped} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BaseRequestBuilderEscaped(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link BaseRequestBuilderEscaped} 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 BaseRequestBuilderEscaped(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", rawUrl); - } - /** - * Parent contentType from which this content type is derived. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get() { - return get(null); - } - /** - * Parent contentType from which this content type is derived. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * Parent contentType from which this content type is derived. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Parent contentType from which this content type is derived. - * @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 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 BaseRequestBuilderEscaped} - */ - @jakarta.annotation.Nonnull - public BaseRequestBuilderEscaped withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BaseRequestBuilderEscaped(rawUrl, requestAdapter); - } - /** - * Parent contentType from which this content type is derived. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java deleted file mode 100644 index 1f304c02ff1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes; - -import com.microsoft.graph.models.ContentTypeCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.item.ContentTypeItemRequestBuilder; -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 manage the baseTypes property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BaseTypesRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. - * @param contentTypeId1 The unique identifier of contentType - * @return a {@link ContentTypeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypeItemRequestBuilder byContentTypeId1(@jakarta.annotation.Nonnull final String contentTypeId1) { - Objects.requireNonNull(contentTypeId1); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("contentType%2Did1", contentTypeId1); - return new ContentTypeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link BaseTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public BaseTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link BaseTypesRequestBuilder} 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 BaseTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types that are ancestors of this content type. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types that are ancestors of this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of content types that are ancestors of this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types that are ancestors of this content type. - * @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 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 BaseTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public BaseTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new BaseTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types that are ancestors of this content type. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java deleted file mode 100644 index e9e8f9b0918..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index 24a6e8752d4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.item; - -import com.microsoft.graph.models.ContentType; -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 manage the baseTypes property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentTypeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypeItemRequestBuilder} 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 ContentTypeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", rawUrl); - } - /** - * The collection of content types that are ancestors of this content type. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get() { - return get(null); - } - /** - * The collection of content types that are ancestors of this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types that are ancestors of this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types that are ancestors of this content type. - * @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 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 ContentTypeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypeItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types that are ancestors of this content type. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java deleted file mode 100644 index 900cc15eb25..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks; - -import com.microsoft.graph.models.ColumnLink; -import com.microsoft.graph.models.ColumnLinkCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.item.ColumnLinkItemRequestBuilder; -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 manage the columnLinks property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnLinksRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. - * @param columnLinkId The unique identifier of columnLink - * @return a {@link ColumnLinkItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnLinkItemRequestBuilder byColumnLinkId(@jakarta.annotation.Nonnull final String columnLinkId) { - Objects.requireNonNull(columnLinkId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("columnLink%2Did", columnLinkId); - return new ColumnLinkItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnLinksRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnLinksRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnLinksRequestBuilder} 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 ColumnLinksRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of columns that are required by this content type. - * @return a {@link ColumnLinkCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLinkCollectionResponse get() { - return get(null); - } - /** - * The collection of columns that are required by this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnLinkCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLinkCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnLinkCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columnLinks for storage - * @param body The request body - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink post(@jakarta.annotation.Nonnull final ColumnLink body) { - return post(body, null); - } - /** - * Create new navigation property to columnLinks for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink post(@jakarta.annotation.Nonnull final ColumnLink body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnLink::createFromDiscriminatorValue); - } - /** - * The collection of columns that are required by this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of columns that are required by this content type. - * @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 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; - } - /** - * Create new navigation property to columnLinks for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnLink body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columnLinks for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnLink body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnLinksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnLinksRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnLinksRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of columns that are required by this content type. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java deleted file mode 100644 index 78aecc73a8f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java deleted file mode 100644 index e85595008ff..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.item; - -import com.microsoft.graph.models.ColumnLink; -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 manage the columnLinks property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnLinkItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnLinkItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnLinkItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ColumnLinkItemRequestBuilder} 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 ColumnLinkItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property columnLinks for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property columnLinks for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The collection of columns that are required by this content type. - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink get() { - return get(null); - } - /** - * The collection of columns that are required by this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnLink::createFromDiscriminatorValue); - } - /** - * Update the navigation property columnLinks in storage - * @param body The request body - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink patch(@jakarta.annotation.Nonnull final ColumnLink body) { - return patch(body, null); - } - /** - * Update the navigation property columnLinks in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnLink} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnLink patch(@jakarta.annotation.Nonnull final ColumnLink body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnLink::createFromDiscriminatorValue); - } - /** - * Delete navigation property columnLinks for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property columnLinks for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The collection of columns that are required by this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of columns that are required by this content type. - * @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 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; - } - /** - * Update the navigation property columnLinks in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnLink body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property columnLinks in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnLink body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnLinkItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnLinkItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnLinkItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The collection of columns that are required by this content type. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java deleted file mode 100644 index e48ff779291..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions; - -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.item.ColumnDefinitionItemRequestBuilder; -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 manage the columnPositions property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnPositionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. - * @param columnDefinitionId The unique identifier of columnDefinition - * @return a {@link ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder byColumnDefinitionId(@jakarta.annotation.Nonnull final String columnDefinitionId) { - Objects.requireNonNull(columnDefinitionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("columnDefinition%2Did", columnDefinitionId); - return new ColumnDefinitionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnPositionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnPositionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnPositionsRequestBuilder} 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 ColumnPositionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Column order information in a content type. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * Column order information in a content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Column order information in a content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Column order information in a content type. - * @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 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 ColumnPositionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnPositionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnPositionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Column order information in a content type. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java deleted file mode 100644 index 6152d341808..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index dc72d4f13a5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.item; - -import com.microsoft.graph.models.ColumnDefinition; -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 manage the columnPositions property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnDefinitionItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} 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 ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Column order information in a content type. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get() { - return get(null); - } - /** - * Column order information in a content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * Column order information in a content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Column order information in a content type. - * @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 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 ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnDefinitionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Column order information in a content type. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 1919aa8c28c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item.ColumnDefinitionItemRequestBuilder; -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 manage the columns property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.contentType entity. - * @param columnDefinitionId The unique identifier of columnDefinition - * @return a {@link ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder byColumnDefinitionId(@jakarta.annotation.Nonnull final String columnDefinitionId) { - Objects.requireNonNull(columnDefinitionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("columnDefinition%2Did", columnDefinitionId); - return new ColumnDefinitionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} 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 ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions for this content type. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions for this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of column definitions for this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions for this content type. - * @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 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; - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions for this content type. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index c58550d87d7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index fa5da49a59b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item; - -import com.microsoft.graph.models.ColumnDefinition; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item.sourcecolumn.SourceColumnRequestBuilder; -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 manage the columns property of the microsoft.graph.contentType entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnDefinitionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. - * @return a {@link SourceColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SourceColumnRequestBuilder sourceColumn() { - return new SourceColumnRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ColumnDefinitionItemRequestBuilder} 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 ColumnDefinitionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property columns for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The collection of column definitions for this content type. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get() { - return get(null); - } - /** - * The collection of column definitions for this content type. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition patch(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return patch(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition patch(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * Delete navigation property columns for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property columns for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The collection of column definitions for this content type. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions for this content type. - * @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 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; - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property columns in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ColumnDefinitionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnDefinitionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnDefinitionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The collection of column definitions for this content type. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index c080191a2b1..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item.sourcecolumn; - -import com.microsoft.graph.models.ColumnDefinition; -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 manage the sourceColumn property of the microsoft.graph.columnDefinition entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SourceColumnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SourceColumnRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SourceColumnRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SourceColumnRequestBuilder} 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 SourceColumnRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl); - } - /** - * The source column for the content type column. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get() { - return get(null); - } - /** - * The source column for the content type column. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The source column for the content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for the content type column. - * @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 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 SourceColumnRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SourceColumnRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SourceColumnRequestBuilder(rawUrl, requestAdapter); - } - /** - * The source column for the content type column. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java deleted file mode 100644 index b61d6af36cf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -import com.microsoft.graph.models.ItemReference; -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 CopyToDefaultContentLocationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CopyToDefaultContentLocationPostRequestBody} and sets the default values. - */ - public CopyToDefaultContentLocationPostRequestBody() { - 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 CopyToDefaultContentLocationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CopyToDefaultContentLocationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CopyToDefaultContentLocationPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the destinationFileName property value. The destinationFileName property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getDestinationFileName() { - return this.backingStore.get("destinationFileName"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("destinationFileName", (n) -> { this.setDestinationFileName(n.getStringValue()); }); - deserializerMap.put("sourceFile", (n) -> { this.setSourceFile(n.getObjectValue(ItemReference::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sourceFile property value. The sourceFile property - * @return a {@link ItemReference} - */ - @jakarta.annotation.Nullable - public ItemReference getSourceFile() { - return this.backingStore.get("sourceFile"); - } - /** - * 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.writeStringValue("destinationFileName", this.getDestinationFileName()); - writer.writeObjectValue("sourceFile", this.getSourceFile()); - 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 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 destinationFileName property value. The destinationFileName property - * @param value Value to set for the destinationFileName property. - */ - public void setDestinationFileName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("destinationFileName", value); - } - /** - * Sets the sourceFile property value. The sourceFile property - * @param value Value to set for the sourceFile property. - */ - public void setSourceFile(@jakarta.annotation.Nullable final ItemReference value) { - this.backingStore.set("sourceFile", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java deleted file mode 100644 index a921ed7cc81..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -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.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 copyToDefaultContentLocation method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CopyToDefaultContentLocationRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CopyToDefaultContentLocationRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", pathParameters); - } - /** - * Instantiates a new {@link CopyToDefaultContentLocationRequestBuilder} 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 CopyToDefaultContentLocationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl); - } - /** - * Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CopyToDefaultContentLocationPostRequestBody body) { - post(body, null); - } - /** - * Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nonnull final CopyToDefaultContentLocationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CopyToDefaultContentLocationPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CopyToDefaultContentLocationPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CopyToDefaultContentLocationRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CopyToDefaultContentLocationRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java deleted file mode 100644 index 8ebffbd582b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.ispublished; - -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 IsPublishedGetResponse implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsPublishedGetResponse} and sets the default values. - */ - public IsPublishedGetResponse() { - 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 IsPublishedGetResponse} - */ - @jakarta.annotation.Nonnull - public static IsPublishedGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsPublishedGetResponse(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(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 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); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java deleted file mode 100644 index 217905deab8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.ispublished; - -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.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 isPublished method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsPublishedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link IsPublishedRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public IsPublishedRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/isPublished()", pathParameters); - } - /** - * Instantiates a new {@link IsPublishedRequestBuilder} 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 IsPublishedRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/isPublished()", rawUrl); - } - /** - * Check the publishing status of a contentType in a content type hub site. - * @return a {@link IsPublishedGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public IsPublishedGetResponse get() { - return get(null); - } - /** - * Check the publishing status of a contentType in a content type hub site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link IsPublishedGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public IsPublishedGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, IsPublishedGetResponse::createFromDiscriminatorValue); - } - /** - * Check the publishing status of a contentType in a content type hub site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Check the publishing status of a contentType in a content type hub site. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - 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 IsPublishedRequestBuilder} - */ - @jakarta.annotation.Nonnull - public IsPublishedRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new IsPublishedRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java deleted file mode 100644 index eed7db362a4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.unpublish; - -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.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 unpublish method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnpublishRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link UnpublishRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public UnpublishRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/unpublish", pathParameters); - } - /** - * Instantiates a new {@link UnpublishRequestBuilder} 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 UnpublishRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/unpublish", rawUrl); - } - /** - * Unpublish a contentType from a content type hub site. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Unpublish a contentType from a content type hub site. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Unpublish a contentType from a content type hub site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Unpublish a contentType from a content type hub site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 UnpublishRequestBuilder} - */ - @jakarta.annotation.Nonnull - public UnpublishRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new UnpublishRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index cdf38ff55a6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 2babe91528a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/createdByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index d2c6926fb58..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 2b3f750f5ad..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java deleted file mode 100644 index 225474b6db8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.drive; - -import com.microsoft.graph.models.Drive; -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 manage the drive property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/drive{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveRequestBuilder} 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 DriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/drive{?%24expand,%24select}", rawUrl); - } - /** - * Allows access to the list as a drive resource with driveItems. Only present on document libraries. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get() { - return get(null); - } - /** - * Allows access to the list as a drive resource with driveItems. Only present on document libraries. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * Allows access to the list as a drive resource with driveItems. Only present on document libraries. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Allows access to the list as a drive resource with driveItems. Only present on document libraries. - * @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 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 DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveRequestBuilder(rawUrl, requestAdapter); - } - /** - * Allows access to the list as a drive resource with driveItems. Only present on document libraries. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java deleted file mode 100644 index 4b44e6890da..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items; - -import com.microsoft.graph.models.ListItem; -import com.microsoft.graph.models.ListItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.delta.DeltaRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.ListItemItemRequestBuilder; -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 manage the items property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the delta method. - * @return a {@link DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder delta() { - return new DeltaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.list entity. - * @param listItemId The unique identifier of listItem - * @return a {@link ListItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemItemRequestBuilder byListItemId(@jakarta.annotation.Nonnull final String listItemId) { - Objects.requireNonNull(listItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("listItem%2Did", listItemId); - return new ListItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} 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 ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Provides operations to call the delta method. - * @param token Usage: token='{token}' - * @return a {@link DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder deltaWithToken(@jakarta.annotation.Nonnull final String token) { - Objects.requireNonNull(token); - return new DeltaWithTokenRequestBuilder(pathParameters, requestAdapter, token); - } - /** - * All items contained in the list. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get() { - return get(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body) { - return post(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * All items contained in the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the list. - * @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 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; - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * All items contained in the list. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java deleted file mode 100644 index e8e1d3cce4a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.delta; - -import com.microsoft.graph.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.models.ListItem; -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 DeltaGetResponse extends BaseDeltaFunctionResponse implements Parsable { - /** - * Instantiates a new {@link DeltaGetResponse} and sets the default values. - */ - public DeltaGetResponse() { - 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 DeltaGetResponse} - */ - @jakarta.annotation.Nonnull - public static DeltaGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ListItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java deleted file mode 100644 index 50f9a0f7a43..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.delta; - -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 delta method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DeltaRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DeltaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DeltaRequestBuilder} 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 DeltaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all thechanges, you can apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. - * @return a {@link DeltaGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DeltaGetResponse get() { - return get(null); - } - /** - * Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all thechanges, you can apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DeltaGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public DeltaGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DeltaGetResponse::createFromDiscriminatorValue); - } - /** - * Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all thechanges, you can apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all thechanges, you can apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. - * @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 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 DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DeltaRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all thechanges, you can apply them to your local state.To check for changes in thefuture, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index 6f1cbbe5e7f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.deltawithtoken; - -import com.microsoft.graph.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.models.ListItem; -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 DeltaWithTokenGetResponse extends BaseDeltaFunctionResponse implements Parsable { - /** - * Instantiates a new {@link DeltaWithTokenGetResponse} and sets the default values. - */ - public DeltaWithTokenGetResponse() { - 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 DeltaWithTokenGetResponse} - */ - @jakarta.annotation.Nonnull - public static DeltaWithTokenGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaWithTokenGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ListItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index 9cc6a2a00eb..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.deltawithtoken; - -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 delta method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaWithTokenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DeltaWithTokenRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param token Usage: token='{token}' - */ - public DeltaWithTokenRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String token) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("token", token); - } - /** - * Instantiates a new {@link DeltaWithTokenRequestBuilder} 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 DeltaWithTokenRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Invoke function delta - * @return a {@link DeltaWithTokenGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DeltaWithTokenGetResponse get() { - return get(null); - } - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DeltaWithTokenGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DeltaWithTokenGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DeltaWithTokenGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function delta - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function delta - * @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 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 DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DeltaWithTokenRequestBuilder(rawUrl, requestAdapter); - } - /** - * Invoke function delta - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java deleted file mode 100644 index 68c69f522f8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java +++ /dev/null @@ -1,324 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item; - -import com.microsoft.graph.models.ListItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.DocumentSetVersionsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyinterval.GetActivitiesByIntervalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.VersionsRequestBuilder; -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 manage the items property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.listItem entity. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder analytics() { - return new AnalyticsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the createLink method. - * @return a {@link CreateLinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateLinkRequestBuilder createLink() { - return new CreateLinkRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. - * @return a {@link DocumentSetVersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DocumentSetVersionsRequestBuilder documentSetVersions() { - return new DocumentSetVersionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the driveItem property of the microsoft.graph.listItem entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the fields property of the microsoft.graph.listItem entity. - * @return a {@link FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder fields() { - return new FieldsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the getActivitiesByInterval method. - * @return a {@link GetActivitiesByIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalRequestBuilder getActivitiesByInterval() { - return new GetActivitiesByIntervalRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the versions property of the microsoft.graph.listItem entity. - * @return a {@link VersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VersionsRequestBuilder versions() { - return new VersionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ListItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ListItemItemRequestBuilder} 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 ListItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property items for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property items for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * All items contained in the list. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * Provides operations to call the getActivitiesByInterval method. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param startDateTime Usage: startDateTime='{startDateTime}' - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(@jakarta.annotation.Nonnull final String endDateTime, @jakarta.annotation.Nonnull final String interval, @jakarta.annotation.Nonnull final String startDateTime) { - Objects.requireNonNull(endDateTime); - Objects.requireNonNull(interval); - Objects.requireNonNull(startDateTime); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(pathParameters, requestAdapter, endDateTime, interval, startDateTime); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem patch(@jakarta.annotation.Nonnull final ListItem body) { - return patch(body, null); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem patch(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * Delete navigation property items for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property items for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * All items contained in the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the list. - * @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 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; - } - /** - * Update the navigation property items in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ListItem body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property items in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ListItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * All items contained in the list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index a11c9ad7a39..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.analytics; - -import com.microsoft.graph.models.ItemAnalytics; -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 manage the analytics property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} 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 AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Analytics about the view activities that took place on this item. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Analytics about the view activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this item. - * @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 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 AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Analytics about the view activities that took place on this item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index e97cd18701d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} 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 CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who created the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who created the item. Read-only. - * @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 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who created the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 0756701b141..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/createdByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 9a1390d7bac..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 8cacc28cd6f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 85195dcfc83..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.models.DriveRecipient; -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.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateLinkPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CreateLinkPostRequestBody} and sets the default values. - */ - public CreateLinkPostRequestBody() { - 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 CreateLinkPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CreateLinkPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CreateLinkPostRequestBody(); - } - /** - * 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} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map 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; - } - /** - * Gets the expirationDateTime property value. The expirationDateTime property - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getExpirationDateTime() { - return this.backingStore.get("expirationDateTime"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("expirationDateTime", (n) -> { this.setExpirationDateTime(n.getOffsetDateTimeValue()); }); - deserializerMap.put("message", (n) -> { this.setMessage(n.getStringValue()); }); - deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); - deserializerMap.put("recipients", (n) -> { this.setRecipients(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - deserializerMap.put("retainInheritedPermissions", (n) -> { this.setRetainInheritedPermissions(n.getBooleanValue()); }); - deserializerMap.put("scope", (n) -> { this.setScope(n.getStringValue()); }); - deserializerMap.put("sendNotification", (n) -> { this.setSendNotification(n.getBooleanValue()); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the message property value. The message property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMessage() { - return this.backingStore.get("message"); - } - /** - * Gets the password property value. The password property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getPassword() { - return this.backingStore.get("password"); - } - /** - * Gets the recipients property value. The recipients property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getRecipients() { - return this.backingStore.get("recipients"); - } - /** - * Gets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getRetainInheritedPermissions() { - return this.backingStore.get("retainInheritedPermissions"); - } - /** - * Gets the scope property value. The scope property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getScope() { - return this.backingStore.get("scope"); - } - /** - * Gets the sendNotification property value. The sendNotification property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getSendNotification() { - return this.backingStore.get("sendNotification"); - } - /** - * Gets the type property value. The type property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getType() { - return this.backingStore.get("type"); - } - /** - * 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.writeOffsetDateTimeValue("expirationDateTime", this.getExpirationDateTime()); - writer.writeStringValue("message", this.getMessage()); - writer.writeStringValue("password", this.getPassword()); - writer.writeCollectionOfObjectValues("recipients", this.getRecipients()); - writer.writeBooleanValue("retainInheritedPermissions", this.getRetainInheritedPermissions()); - writer.writeStringValue("scope", this.getScope()); - writer.writeBooleanValue("sendNotification", this.getSendNotification()); - writer.writeStringValue("type", this.getType()); - 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 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 expirationDateTime property value. The expirationDateTime property - * @param value Value to set for the expirationDateTime property. - */ - public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { - this.backingStore.set("expirationDateTime", value); - } - /** - * Sets the message property value. The message property - * @param value Value to set for the message property. - */ - public void setMessage(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("message", value); - } - /** - * Sets the password property value. The password property - * @param value Value to set for the password property. - */ - public void setPassword(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("password", value); - } - /** - * Sets the recipients property value. The recipients property - * @param value Value to set for the recipients property. - */ - public void setRecipients(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("recipients", value); - } - /** - * Sets the retainInheritedPermissions property value. The retainInheritedPermissions property - * @param value Value to set for the retainInheritedPermissions property. - */ - public void setRetainInheritedPermissions(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("retainInheritedPermissions", value); - } - /** - * Sets the scope property value. The scope property - * @param value Value to set for the scope property. - */ - public void setScope(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("scope", value); - } - /** - * Sets the sendNotification property value. The sendNotification property - * @param value Value to set for the sendNotification property. - */ - public void setSendNotification(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("sendNotification", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index ba31ff6f2c9..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Permission; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -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 createLink method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreateLinkRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreateLinkRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreateLinkRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createLink", pathParameters); - } - /** - * Instantiates a new {@link CreateLinkRequestBuilder} 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 CreateLinkRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createLink", rawUrl); - } - /** - * Invoke action createLink - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body) { - return post(body, null); - } - /** - * Invoke action createLink - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * Invoke action createLink - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Invoke action createLink - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CreateLinkPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 CreateLinkRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreateLinkRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreateLinkRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java deleted file mode 100644 index 6945949c71f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions; - -import com.microsoft.graph.models.DocumentSetVersion; -import com.microsoft.graph.models.DocumentSetVersionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.DocumentSetVersionItemRequestBuilder; -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 manage the documentSetVersions property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DocumentSetVersionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. - * @param documentSetVersionId The unique identifier of documentSetVersion - * @return a {@link DocumentSetVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DocumentSetVersionItemRequestBuilder byDocumentSetVersionId(@jakarta.annotation.Nonnull final String documentSetVersionId) { - Objects.requireNonNull(documentSetVersionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("documentSetVersion%2Did", documentSetVersionId); - return new DocumentSetVersionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link DocumentSetVersionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DocumentSetVersionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DocumentSetVersionsRequestBuilder} 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 DocumentSetVersionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Version information for a document set version created by a user. - * @return a {@link DocumentSetVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersionCollectionResponse get() { - return get(null); - } - /** - * Version information for a document set version created by a user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DocumentSetVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DocumentSetVersionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to documentSetVersions for storage - * @param body The request body - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion post(@jakarta.annotation.Nonnull final DocumentSetVersion body) { - return post(body, null); - } - /** - * Create new navigation property to documentSetVersions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion post(@jakarta.annotation.Nonnull final DocumentSetVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DocumentSetVersion::createFromDiscriminatorValue); - } - /** - * Version information for a document set version created by a user. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Version information for a document set version created by a user. - * @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 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; - } - /** - * Create new navigation property to documentSetVersions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentSetVersion body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to documentSetVersions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentSetVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DocumentSetVersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DocumentSetVersionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DocumentSetVersionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Version information for a document set version created by a user. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java deleted file mode 100644 index a79504ff9e5..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java deleted file mode 100644 index 9a36c6f5508..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item; - -import com.microsoft.graph.models.DocumentSetVersion; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.restore.RestoreRequestBuilder; -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 manage the documentSetVersions property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DocumentSetVersionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. - * @return a {@link FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder fields() { - return new FieldsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the restore method. - * @return a {@link RestoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreRequestBuilder restore() { - return new RestoreRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DocumentSetVersionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DocumentSetVersionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DocumentSetVersionItemRequestBuilder} 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 DocumentSetVersionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property documentSetVersions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property documentSetVersions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Version information for a document set version created by a user. - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion get() { - return get(null); - } - /** - * Version information for a document set version created by a user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DocumentSetVersion::createFromDiscriminatorValue); - } - /** - * Update the navigation property documentSetVersions in storage - * @param body The request body - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion patch(@jakarta.annotation.Nonnull final DocumentSetVersion body) { - return patch(body, null); - } - /** - * Update the navigation property documentSetVersions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DocumentSetVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DocumentSetVersion patch(@jakarta.annotation.Nonnull final DocumentSetVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DocumentSetVersion::createFromDiscriminatorValue); - } - /** - * Delete navigation property documentSetVersions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property documentSetVersions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Version information for a document set version created by a user. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Version information for a document set version created by a user. - * @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 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; - } - /** - * Update the navigation property documentSetVersions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentSetVersion body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property documentSetVersions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentSetVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 DocumentSetVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DocumentSetVersionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DocumentSetVersionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Version information for a document set version created by a user. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index 9ef1c6967f7..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.fields; - -import com.microsoft.graph.models.FieldValueSet; -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 manage the fields property of the microsoft.graph.listItemVersion entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FieldsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FieldsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FieldsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FieldsRequestBuilder} 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 FieldsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fields for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * A collection of the fields and values for this version of the list item. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get() { - return get(null); - } - /** - * A collection of the fields and values for this version of the list item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body) { - return patch(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Delete navigation property fields for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * A collection of the fields and values for this version of the list item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of the fields and values for this version of the list item. - * @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 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; - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FieldsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * A collection of the fields and values for this version of the list item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index 2934d5fd59d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.restore; - -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.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 restore method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RestoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RestoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RestoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", pathParameters); - } - /** - * Instantiates a new {@link RestoreRequestBuilder} 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 RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl); - } - /** - * Restore a document set version. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Restore a document set version. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Restore a document set version. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Restore a document set version. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RestoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RestoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 2de288bf416..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.driveitem; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.driveitem.content.ContentRequestBuilder; -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 manage the driveItem property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemRequestBuilder} 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 DriveItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * For document libraries, the driveItem relationship exposes the listItem as a driveItem - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * For document libraries, the driveItem relationship exposes the listItem as a driveItem - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * For document libraries, the driveItem relationship exposes the listItem as a driveItem - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * For document libraries, the driveItem relationship exposes the listItem as a driveItem - * @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 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * For document libraries, the driveItem relationship exposes the listItem as a driveItem - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 5e1c715e75b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.driveitem.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index f494c73a201..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.fields; - -import com.microsoft.graph.models.FieldValueSet; -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 manage the fields property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FieldsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FieldsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FieldsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/fields{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FieldsRequestBuilder} 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 FieldsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/fields{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fields for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The values of the columns set on this list item. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get() { - return get(null); - } - /** - * The values of the columns set on this list item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body) { - return patch(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Delete navigation property fields for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The values of the columns set on this list item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The values of the columns set on this list item. - * @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 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; - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FieldsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The values of the columns set on this list item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java deleted file mode 100644 index f1cdb1edf1c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyinterval; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.ItemActivityStat; -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 GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GetActivitiesByIntervalGetResponse} and sets the default values. - */ - public GetActivitiesByIntervalGetResponse() { - 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 GetActivitiesByIntervalGetResponse} - */ - @jakarta.annotation.Nonnull - public static GetActivitiesByIntervalGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GetActivitiesByIntervalGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ItemActivityStat::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java deleted file mode 100644 index 8d8d377a253..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyinterval; - -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 getActivitiesByInterval method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetActivitiesByIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetActivitiesByIntervalRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetActivitiesByIntervalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link GetActivitiesByIntervalRequestBuilder} 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 GetActivitiesByIntervalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link GetActivitiesByIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalGetResponse get() { - return get(null); - } - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GetActivitiesByIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GetActivitiesByIntervalGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getActivitiesByInterval - * @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 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 GetActivitiesByIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Invoke function getActivitiesByInterval - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index bcf6707ea22..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.ItemActivityStat; -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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} and sets the default values. - */ - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse() { - 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - */ - @jakarta.annotation.Nonnull - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ItemActivityStat::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index d207f38ded8..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -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 getActivitiesByInterval method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String endDateTime, @jakarta.annotation.Nullable final String interval, @jakarta.annotation.Nullable final String startDateTime) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("endDateTime", endDateTime); - this.pathParameters.put("interval", interval); - this.pathParameters.put("startDateTime", startDateTime); - } - /** - * Instantiates a new {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get() { - return get(null); - } - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::createFromDiscriminatorValue); - } - /** - * Invoke function getActivitiesByInterval - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getActivitiesByInterval - * @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 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Invoke function getActivitiesByInterval - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 2a2ab7dfa05..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 67104dd8470..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/lastModifiedByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 17a02411ff2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 74ab2bd15d2..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index 26681eab87f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions; - -import com.microsoft.graph.models.ListItemVersion; -import com.microsoft.graph.models.ListItemVersionCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item.ListItemVersionItemRequestBuilder; -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 manage the versions property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VersionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the versions property of the microsoft.graph.listItem entity. - * @param listItemVersionId The unique identifier of listItemVersion - * @return a {@link ListItemVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemVersionItemRequestBuilder byListItemVersionId(@jakarta.annotation.Nonnull final String listItemVersionId) { - Objects.requireNonNull(listItemVersionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("listItemVersion%2Did", listItemVersionId); - return new ListItemVersionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link VersionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public VersionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link VersionsRequestBuilder} 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 VersionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of previous versions of the list item. - * @return a {@link ListItemVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersionCollectionResponse get() { - return get(null); - } - /** - * The list of previous versions of the list item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemVersionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemVersionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion post(@jakarta.annotation.Nonnull final ListItemVersion body) { - return post(body, null); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion post(@jakarta.annotation.Nonnull final ListItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemVersion::createFromDiscriminatorValue); - } - /** - * The list of previous versions of the list item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of previous versions of the list item. - * @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 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; - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItemVersion body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to versions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 VersionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public VersionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new VersionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of previous versions of the list item. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index 8c3e80a6649..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java deleted file mode 100644 index 093cf56498f..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item; - -import com.microsoft.graph.models.ListItemVersion; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item.restoreversion.RestoreVersionRequestBuilder; -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 manage the versions property of the microsoft.graph.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListItemVersionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. - * @return a {@link FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder fields() { - return new FieldsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to call the restoreVersion method. - * @return a {@link RestoreVersionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreVersionRequestBuilder restoreVersion() { - return new RestoreVersionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ListItemVersionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListItemVersionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ListItemVersionItemRequestBuilder} 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 ListItemVersionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property versions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property versions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The list of previous versions of the list item. - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion get() { - return get(null); - } - /** - * The list of previous versions of the list item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemVersion::createFromDiscriminatorValue); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion patch(@jakarta.annotation.Nonnull final ListItemVersion body) { - return patch(body, null); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemVersion} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemVersion patch(@jakarta.annotation.Nonnull final ListItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemVersion::createFromDiscriminatorValue); - } - /** - * Delete navigation property versions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property versions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The list of previous versions of the list item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of previous versions of the list item. - * @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 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; - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ListItemVersion body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property versions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ListItemVersion body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 ListItemVersionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemVersionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemVersionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The list of previous versions of the list item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index 215e02e27d3..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item.fields; - -import com.microsoft.graph.models.FieldValueSet; -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 manage the fields property of the microsoft.graph.listItemVersion entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FieldsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link FieldsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public FieldsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link FieldsRequestBuilder} 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 FieldsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property fields for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * A collection of the fields and values for this version of the list item. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get() { - return get(null); - } - /** - * A collection of the fields and values for this version of the list item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body) { - return patch(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link FieldValueSet} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public FieldValueSet patch(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, FieldValueSet::createFromDiscriminatorValue); - } - /** - * Delete navigation property fields for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property fields for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * A collection of the fields and values for this version of the list item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of the fields and values for this version of the list item. - * @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 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; - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property fields in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FieldValueSet body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 FieldsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public FieldsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new FieldsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * A collection of the fields and values for this version of the list item. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index c3f416a575c..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.items.item.versions.item.restoreversion; - -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.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 restoreVersion method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RestoreVersionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RestoreVersionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RestoreVersionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", pathParameters); - } - /** - * Instantiates a new {@link RestoreVersionRequestBuilder} 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 RestoreVersionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl); - } - /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 RestoreVersionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RestoreVersionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RestoreVersionRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 7d92dc5f9a6..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.User; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; -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 manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * The mailboxSettings property - * @return a {@link MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder mailboxSettings() { - return new MailboxSettingsRequestBuilder(pathParameters, requestAdapter); - } - /** - * The serviceProvisioningErrors property - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { - return new ServiceProvisioningErrorsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} 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 LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); - } - /** - * Identity of the user who last modified the item. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Identity of the user who last modified the item. Read-only. - * @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 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Identity of the user who last modified the item. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index cf19a9fc8ac..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.models.MailboxSettings; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/lastModifiedByUser/mailboxSettings - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MailboxSettingsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link MailboxSettingsRequestBuilder} 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 MailboxSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get() { - return get(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body) { - return patch(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link MailboxSettings} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public MailboxSettings patch(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, MailboxSettings::createFromDiscriminatorValue); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - * @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 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; - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body) { - return toPatchRequestInformation(body, null); - } - /** - * Update property mailboxSettings value. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final MailboxSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 MailboxSettingsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public MailboxSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new MailboxSettingsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 571a7094560..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -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; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} 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 ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - * @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 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 ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 9bd290be2dc..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java deleted file mode 100644 index 8face331f4b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.RichLongRunningOperation; -import com.microsoft.graph.models.RichLongRunningOperationCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations.item.RichLongRunningOperationItemRequestBuilder; -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 manage the operations property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.list entity. - * @param richLongRunningOperationId The unique identifier of richLongRunningOperation - * @return a {@link RichLongRunningOperationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RichLongRunningOperationItemRequestBuilder byRichLongRunningOperationId(@jakarta.annotation.Nonnull final String richLongRunningOperationId) { - Objects.requireNonNull(richLongRunningOperationId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("richLongRunningOperation%2Did", richLongRunningOperationId); - return new RichLongRunningOperationItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} 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 OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of long-running operations on the list. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get() { - return get(null); - } - /** - * The collection of long-running operations on the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * The collection of long-running operations on the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long-running operations on the list. - * @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 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; - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of long-running operations on the list. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java deleted file mode 100644 index 2b5ca3ec73a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java deleted file mode 100644 index b100604cbcf..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.operations.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.RichLongRunningOperation; -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 manage the operations property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RichLongRunningOperationItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RichLongRunningOperationItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RichLongRunningOperationItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link RichLongRunningOperationItemRequestBuilder} 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 RichLongRunningOperationItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property operations for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property operations for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The collection of long-running operations on the list. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation get() { - return get(null); - } - /** - * The collection of long-running operations on the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation patch(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return patch(body, null); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation patch(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * Delete navigation property operations for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property operations for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The collection of long-running operations on the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long-running operations on the list. - * @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 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; - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property operations in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 RichLongRunningOperationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RichLongRunningOperationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RichLongRunningOperationItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The collection of long-running operations on the list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index cd1b5d39d12..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Subscription; -import com.microsoft.graph.models.SubscriptionCollectionResponse; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.item.SubscriptionItemRequestBuilder; -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 manage the subscriptions property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubscriptionsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the subscriptions property of the microsoft.graph.list entity. - * @param subscriptionId The unique identifier of subscription - * @return a {@link SubscriptionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionItemRequestBuilder bySubscriptionId(@jakarta.annotation.Nonnull final String subscriptionId) { - Objects.requireNonNull(subscriptionId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("subscription%2Did", subscriptionId); - return new SubscriptionItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link SubscriptionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubscriptionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SubscriptionsRequestBuilder} 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 SubscriptionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The set of subscriptions on the list. - * @return a {@link SubscriptionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SubscriptionCollectionResponse get() { - return get(null); - } - /** - * The set of subscriptions on the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SubscriptionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SubscriptionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SubscriptionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription post(@jakarta.annotation.Nonnull final Subscription body) { - return post(body, null); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription post(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * The set of subscriptions on the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of subscriptions on the list. - * @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 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; - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Subscription body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to subscriptions for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubscriptionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubscriptionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The set of subscriptions on the list. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index c86945f54ea..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index f971912cc1e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.item; - -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.Subscription; -import com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.item.reauthorize.ReauthorizeRequestBuilder; -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 manage the subscriptions property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubscriptionItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the reauthorize method. - * @return a {@link ReauthorizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReauthorizeRequestBuilder reauthorize() { - return new ReauthorizeRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link SubscriptionItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SubscriptionItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link SubscriptionItemRequestBuilder} 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 SubscriptionItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property subscriptions for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property subscriptions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The set of subscriptions on the list. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription get() { - return get(null); - } - /** - * The set of subscriptions on the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription patch(@jakarta.annotation.Nonnull final Subscription body) { - return patch(body, null); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Subscription} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Subscription patch(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Subscription::createFromDiscriminatorValue); - } - /** - * Delete navigation property subscriptions for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property subscriptions for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The set of subscriptions on the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The set of subscriptions on the list. - * @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 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; - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Subscription body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property subscriptions in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Subscription body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - 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 SubscriptionItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SubscriptionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SubscriptionItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The set of subscriptions on the list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index 1b5b2ec3576..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.list.subscriptions.item.reauthorize; - -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.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 reauthorize method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReauthorizeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ReauthorizeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ReauthorizeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}/reauthorize", pathParameters); - } - /** - * Instantiates a new {@link ReauthorizeRequestBuilder} 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 ReauthorizeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}/reauthorize", rawUrl); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @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 Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - 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 ReauthorizeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ReauthorizeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ReauthorizeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java deleted file mode 100644 index 6c75965ff3b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.recent; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.DriveItem; -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 RecentGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link RecentGetResponse} and sets the default values. - */ - public RecentGetResponse() { - 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 RecentGetResponse} - */ - @jakarta.annotation.Nonnull - public static RecentGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RecentGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java deleted file mode 100644 index e68babc6e1b..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.recent; - -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 recent method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RecentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RecentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RecentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link RecentRequestBuilder} 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 RecentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. - * @return a {@link RecentGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public RecentGetResponse get() { - return get(null); - } - /** - * List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RecentGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public RecentGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RecentGetResponse::createFromDiscriminatorValue); - } - /** - * List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. - * @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 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 RecentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RecentRequestBuilder(rawUrl, requestAdapter); - } - /** - * List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java deleted file mode 100644 index fb4ac74ba76..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.root; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.root.content.ContentRequestBuilder; -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 manage the root property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RootRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link RootRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RootRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link RootRequestBuilder} 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 RootRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root{?%24expand,%24select}", rawUrl); - } - /** - * The root folder of the drive. Read-only. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * The root folder of the drive. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The root folder of the drive. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The root folder of the drive. Read-only. - * @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 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 RootRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RootRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RootRequestBuilder(rawUrl, requestAdapter); - } - /** - * The root folder of the drive. Read-only. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java deleted file mode 100644 index 51006dcb46e..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.root.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index 9e1199b7cee..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.searchwithq; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.DriveItem; -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 SearchWithQGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link SearchWithQGetResponse} and sets the default values. - */ - public SearchWithQGetResponse() { - 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 SearchWithQGetResponse} - */ - @jakarta.annotation.Nonnull - public static SearchWithQGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SearchWithQGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index a28a4920da0..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.searchwithq; - -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 search method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SearchWithQRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SearchWithQRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param q Usage: q='{q}' - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SearchWithQRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String q) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - this.pathParameters.put("q", q); - } - /** - * Instantiates a new {@link SearchWithQRequestBuilder} 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 SearchWithQRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @return a {@link SearchWithQGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SearchWithQGetResponse get() { - return get(null); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SearchWithQGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SearchWithQGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SearchWithQGetResponse::createFromDiscriminatorValue); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - * @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 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 SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SearchWithQRequestBuilder(rawUrl, requestAdapter); - } - /** - * Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java deleted file mode 100644 index 4b091423953..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.sharedwithme; - -import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.models.DriveItem; -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 SharedWithMeGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link SharedWithMeGetResponse} and sets the default values. - */ - public SharedWithMeGetResponse() { - 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 SharedWithMeGetResponse} - */ - @jakarta.annotation.Nonnull - public static SharedWithMeGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SharedWithMeGetResponse(); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(DriveItem::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List 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 value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java deleted file mode 100644 index 3601c22f829..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.sharedwithme; - -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 sharedWithMe method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SharedWithMeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SharedWithMeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SharedWithMeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/sharedWithMe(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SharedWithMeRequestBuilder} 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 SharedWithMeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/sharedWithMe(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. - * @return a {@link SharedWithMeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SharedWithMeGetResponse get() { - return get(null); - } - /** - * Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SharedWithMeGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public SharedWithMeGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SharedWithMeGetResponse::createFromDiscriminatorValue); - } - /** - * Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. - * @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 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 SharedWithMeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SharedWithMeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SharedWithMeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java deleted file mode 100644 index 7e89d325f21..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.special; - -import com.microsoft.graph.models.DriveItemCollectionResponse; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.special.count.CountRequestBuilder; -import com.microsoft.graph.storage.filestorage.containers.item.drive.special.item.DriveItemItemRequestBuilder; -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 manage the special property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SpecialRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the special property of the microsoft.graph.drive entity. - * @param driveItemId The unique identifier of driveItem - * @return a {@link DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder byDriveItemId(@jakarta.annotation.Nonnull final String driveItemId) { - Objects.requireNonNull(driveItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("driveItem%2Did", driveItemId); - return new DriveItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link SpecialRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SpecialRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SpecialRequestBuilder} 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 SpecialRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get() { - return get(null); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @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 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 SpecialRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SpecialRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SpecialRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - */ - @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} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java deleted file mode 100644 index 51b8c35fda4..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.special.count; - -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 count the resources in the collection. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CountRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/$count{?%24filter,%24search}", pathParameters); - } - /** - * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get() { - return get(null); - } - /** - * Get the number of the resource - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); - } - /** - * Get the number of the resource - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the number of the resource - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); - 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 CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CountRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get the number of the resource - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 8f8f39bc08d..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.special.item; - -import com.microsoft.graph.models.DriveItem; -import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.storage.filestorage.containers.item.drive.special.item.content.ContentRequestBuilder; -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 manage the special property of the microsoft.graph.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveItemItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder content() { - return new ContentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveItemItemRequestBuilder} 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 DriveItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - * @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 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 DriveItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of common folders available in OneDrive. Read-only. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java deleted file mode 100644 index be24d248a9a..00000000000 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.special.item.content; - -import com.microsoft.graph.models.DriveItem; -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.io.InputStream; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the media for the storage entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/content{?%24format*}", pathParameters); - } - /** - * Instantiates a new {@link ContentRequestBuilder} 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 ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The content stream, if the item represents a file. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body) { - return put(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveItem::createFromDiscriminatorValue); - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. - * @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 requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) { - return toPutRequestInformation(body, null); - } - /** - * The content stream, if the item represents a file. - * @param body Binary request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PutRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setStreamContent(body, "application/octet-stream"); - 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 ContentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The content stream, if the item represents a file. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Format of the content - */ - @jakarta.annotation.Nullable - public String format; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24format", format); - 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(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PutRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permanentdelete/PermanentDeleteRequestBuilder.java similarity index 95% rename from src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java rename to src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permanentdelete/PermanentDeleteRequestBuilder.java index 2724b6756a5..7b48cb9651d 100644 --- a/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permanentdelete/PermanentDeleteRequestBuilder.java @@ -1,4 +1,4 @@ -package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permanentdelete; +package com.microsoft.graph.storage.filestorage.containers.item.permanentdelete; import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -24,7 +24,7 @@ public class PermanentDeleteRequestBuilder extends BaseRequestBuilder { * @param requestAdapter The request adapter to use to execute the requests. */ public PermanentDeleteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permanentDelete", pathParameters); + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/permanentDelete", pathParameters); } /** * Instantiates a new {@link PermanentDeleteRequestBuilder} and sets the default values. @@ -32,7 +32,7 @@ public PermanentDeleteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link SettingsRequestBuilder} 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 SettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property settings for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property settings for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get settings from storage + * @return a {@link StorageSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public StorageSettings get() { + return get(null); + } + /** + * Get settings from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link StorageSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public StorageSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, StorageSettings::createFromDiscriminatorValue); + } + /** + * Update the navigation property settings in storage + * @param body The request body + * @return a {@link StorageSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public StorageSettings patch(@jakarta.annotation.Nonnull final StorageSettings body) { + return patch(body, null); + } + /** + * Update the navigation property settings in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link StorageSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public StorageSettings patch(@jakarta.annotation.Nonnull final StorageSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, StorageSettings::createFromDiscriminatorValue); + } + /** + * Delete navigation property settings for storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property settings for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get settings from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get settings from storage + * @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 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; + } + /** + * Update the navigation property settings in storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final StorageSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property settings in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final StorageSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 SettingsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SettingsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get settings from storage + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/storage/settings/quota/QuotaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/QuotaRequestBuilder.java new file mode 100644 index 00000000000..b4719a4e336 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/QuotaRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.storage.settings.quota; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.UnifiedStorageQuota; +import com.microsoft.graph.storage.settings.quota.services.ServicesRequestBuilder; +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 manage the quota property of the microsoft.graph.storageSettings entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QuotaRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @return a {@link ServicesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServicesRequestBuilder services() { + return new ServicesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link QuotaRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QuotaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link QuotaRequestBuilder} 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 QuotaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property quota for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property quota for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get quota from storage + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota get() { + return get(null); + } + /** + * Get quota from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UnifiedStorageQuota::createFromDiscriminatorValue); + } + /** + * Update the navigation property quota in storage + * @param body The request body + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota patch(@jakarta.annotation.Nonnull final UnifiedStorageQuota body) { + return patch(body, null); + } + /** + * Update the navigation property quota in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota patch(@jakarta.annotation.Nonnull final UnifiedStorageQuota body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UnifiedStorageQuota::createFromDiscriminatorValue); + } + /** + * Delete navigation property quota for storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property quota for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get quota from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get quota from storage + * @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 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; + } + /** + * Update the navigation property quota in storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UnifiedStorageQuota body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property quota in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UnifiedStorageQuota body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 QuotaRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuotaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QuotaRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get quota from storage + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/ServicesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/ServicesRequestBuilder.java new file mode 100644 index 00000000000..30a2ac1ec81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/ServicesRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.storage.settings.quota.services; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdown; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdownCollectionResponse; +import com.microsoft.graph.storage.settings.quota.services.count.CountRequestBuilder; +import com.microsoft.graph.storage.settings.quota.services.item.ServiceStorageQuotaBreakdownItemRequestBuilder; +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 manage the services property of the microsoft.graph.unifiedStorageQuota entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServicesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @param serviceStorageQuotaBreakdownId The unique identifier of serviceStorageQuotaBreakdown + * @return a {@link ServiceStorageQuotaBreakdownItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceStorageQuotaBreakdownItemRequestBuilder byServiceStorageQuotaBreakdownId(@jakarta.annotation.Nonnull final String serviceStorageQuotaBreakdownId) { + Objects.requireNonNull(serviceStorageQuotaBreakdownId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("serviceStorageQuotaBreakdown%2Did", serviceStorageQuotaBreakdownId); + return new ServiceStorageQuotaBreakdownItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ServicesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServicesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServicesRequestBuilder} 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 ServicesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get services from storage + * @return a {@link ServiceStorageQuotaBreakdownCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdownCollectionResponse get() { + return get(null); + } + /** + * Get services from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdownCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdownCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdownCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to services for storage + * @param body The request body + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown post(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return post(body, null); + } + /** + * Create new navigation property to services for storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown post(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Get services from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get services from storage + * @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 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; + } + /** + * Create new navigation property to services for storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to services for storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ServicesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServicesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServicesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get services from storage + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/count/CountRequestBuilder.java new file mode 100644 index 00000000000..f6c96b87a27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.storage.settings.quota.services.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java new file mode 100644 index 00000000000..860b089fce5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/settings/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.storage.settings.quota.services.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdown; +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 manage the services property of the microsoft.graph.unifiedStorageQuota entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceStorageQuotaBreakdownItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ServiceStorageQuotaBreakdownItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceStorageQuotaBreakdownItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ServiceStorageQuotaBreakdownItemRequestBuilder} 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 ServiceStorageQuotaBreakdownItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/settings/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property services for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property services for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get services from storage + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown get() { + return get(null); + } + /** + * Get services from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Update the navigation property services in storage + * @param body The request body + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown patch(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return patch(body, null); + } + /** + * Update the navigation property services in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown patch(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Delete navigation property services for storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property services for storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get services from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get services from storage + * @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 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; + } + /** + * Update the navigation property services in storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property services in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ServiceStorageQuotaBreakdownItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceStorageQuotaBreakdownItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get services from storage + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/ChannelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/ChannelsRequestBuilder.java index e8f1973bbcf..3ce9acb573f 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/ChannelsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/ChannelsRequestBuilder.java @@ -5,6 +5,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.teams.item.channels.count.CountRequestBuilder; import com.microsoft.graph.teams.item.channels.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.teams.item.channels.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.teams.item.channels.item.ChannelItemRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param channelId The unique identifier of channel diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..1551cda58f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.teams.item.channels.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..185b5a44303 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.teams.item.channels.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/ChannelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/ChannelItemRequestBuilder.java index 24dd0fc3a69..91b6b557ca5 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/ChannelItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/ChannelItemRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.teams.item.channels.item.archive.ArchiveRequestBuilder; import com.microsoft.graph.teams.item.channels.item.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.teams.item.channels.item.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.teams.item.channels.item.filesfolder.FilesFolderRequestBuilder; @@ -11,6 +12,7 @@ import com.microsoft.graph.teams.item.channels.item.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.teams.item.channels.item.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.teams.item.channels.item.tabs.TabsRequestBuilder; +import com.microsoft.graph.teams.item.channels.item.unarchive.UnarchiveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link ChannelItemRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..3fb2e849746 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.teams.item.channels.item.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..34b83a582e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.teams.item.channels.item.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java index 03fd4dfbb93..84264dff050 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/MembersRequestBuilder.java @@ -93,23 +93,23 @@ public ConversationMemberCollectionResponse get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, ConversationMemberCollectionResponse::createFromDiscriminatorValue); } /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body) { return post(body, null); } /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationMember} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationMember post(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java index 55b49961cfd..aaef76f21d0 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java @@ -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. + * 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 Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) { return post(body, null); } /** - * Send a new chatMessage in the specified channel. + * 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 Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel. + * 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} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..a6f5a67a7bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.teams.item.channels.item.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/PrimaryChannelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/PrimaryChannelRequestBuilder.java index 8e66b8b8f01..39a1efef270 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/PrimaryChannelRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/PrimaryChannelRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.teams.item.primarychannel.archive.ArchiveRequestBuilder; import com.microsoft.graph.teams.item.primarychannel.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.teams.item.primarychannel.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.teams.item.primarychannel.filesfolder.FilesFolderRequestBuilder; @@ -11,6 +12,7 @@ import com.microsoft.graph.teams.item.primarychannel.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.teams.item.primarychannel.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.teams.item.primarychannel.tabs.TabsRequestBuilder; +import com.microsoft.graph.teams.item.primarychannel.unarchive.UnarchiveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link PrimaryChannelRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..5cdecc7c367 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.teams.item.primarychannel.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..df91eb46ff1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.teams.item.primarychannel.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..73e0c4326f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.teams.item.primarychannel.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/ChannelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/ChannelsRequestBuilder.java index 04777a2bf70..51917c4a312 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/ChannelsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/ChannelsRequestBuilder.java @@ -5,6 +5,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.teamwork.deletedteams.item.channels.count.CountRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.teamwork.deletedteams.item.channels.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.ChannelItemRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. * @param channelId The unique identifier of channel diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..32db9fc3022 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.teamwork.deletedteams.item.channels.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..59d5d95706b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.teamwork.deletedteams.item.channels.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/ChannelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/ChannelItemRequestBuilder.java index 0ff22de3095..142e3b341a1 100644 --- a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/ChannelItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/ChannelItemRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.teamwork.deletedteams.item.channels.item.archive.ArchiveRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.filesfolder.FilesFolderRequestBuilder; @@ -11,6 +12,7 @@ import com.microsoft.graph.teamwork.deletedteams.item.channels.item.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.teamwork.deletedteams.item.channels.item.tabs.TabsRequestBuilder; +import com.microsoft.graph.teamwork.deletedteams.item.channels.item.unarchive.UnarchiveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link ChannelItemRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..39a79de5023 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.teamwork.deletedteams.item.channels.item.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..8c38b3b71f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.teamwork.deletedteams.item.channels.item.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..ebcc70bcb8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/teamwork/deletedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.teamwork.deletedteams.item.channels.item.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java index ef64ede5364..17239b456a8 100644 --- a/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java @@ -99,7 +99,7 @@ public UsersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak * List properties and relationships of the user objects. * @return a {@link UserCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public UserCollectionResponse get() { @@ -110,7 +110,7 @@ public UserCollectionResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UserCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public UserCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -120,23 +120,23 @@ public UserCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, UserCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @param body The request body * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User post(@jakarta.annotation.Nonnull final User body) { return post(body, null); } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User post(@jakarta.annotation.Nonnull final User body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -167,7 +167,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @param body The request body * @return a {@link RequestInformation} */ @@ -176,7 +176,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java index 9396be50c1b..7f5470e10ed 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/UserItemRequestBuilder.java @@ -696,18 +696,18 @@ public UserItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/users/{user%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @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 Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -728,21 +728,21 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder exportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(pathParameters, requestAdapter, skip, top); } /** - * Read properties and relationships of the user object. + * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User get() { return get(null); } /** - * Read properties and relationships of the user object. + * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -756,7 +756,7 @@ public User get(@jakarta.annotation.Nullable final java.util.function.ConsumerFind more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User patch(@jakarta.annotation.Nonnull final User body) { @@ -768,7 +768,7 @@ public User patch(@jakarta.annotation.Nonnull final User body) { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public User patch(@jakarta.annotation.Nonnull final User body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -791,7 +791,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder reminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter, EndDateTime, StartDateTime); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -799,7 +799,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -811,7 +811,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the user object. + * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -819,7 +819,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the user object. + * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -871,7 +871,7 @@ public UserItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the user object. + * Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java index 49d12b25ce9..f31af73fcb3 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java @@ -36,7 +36,7 @@ public AssignLicenseRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/users/{user%2Did}/assignLicense", rawUrl); } /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public User post(@jakarta.annotation.Nonnull final AssignLicensePostRequestBody return post(body, null); } /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} @@ -63,7 +63,7 @@ public User post(@jakarta.annotation.Nonnull final AssignLicensePostRequestBody return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); } /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java index c96fa920a3f..a95b85671ed 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java @@ -36,7 +36,7 @@ public ResetPasswordRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl); } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @return a {@link PasswordResetResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public PasswordResetResponse post(@jakarta.annotation.Nonnull final ResetPasswor return post(body, null); } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PasswordResetResponse} @@ -63,7 +63,7 @@ public PasswordResetResponse post(@jakarta.annotation.Nonnull final ResetPasswor return this.requestAdapter.send(requestInfo, errorMapping, PasswordResetResponse::createFromDiscriminatorValue); } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/OperationsRequestBuilder.java index 824ac29c788..458e7f63db0 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/OperationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/OperationsRequestBuilder.java @@ -60,7 +60,7 @@ public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link LongRunningOperationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public LongRunningOperationCollectionResponse get() { return get(null); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link LongRunningOperationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public LongRunningOperation post(@jakarta.annotation.Nonnull final LongRunningOp return this.requestAdapter.send(requestInfo, errorMapping, LongRunningOperation::createFromDiscriminatorValue); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new OperationsRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java index e21ede0fdae..15e7894cf04 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link LongRunningOperation} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -65,7 +65,7 @@ public LongRunningOperation get() { return get(null); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link LongRunningOperation} * @throws ODataError When receiving a 4XX or 5XX status code @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -184,7 +184,7 @@ public LongRunningOperationItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/chats/ChatsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/chats/ChatsRequestBuilder.java index 457f0833821..570a5f91ea8 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/chats/ChatsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/chats/ChatsRequestBuilder.java @@ -5,6 +5,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.users.item.chats.count.CountRequestBuilder; import com.microsoft.graph.users.item.chats.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.users.item.chats.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.users.item.chats.item.ChatItemRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the chats property of the microsoft.graph.user entity. * @param chatId The unique identifier of chat diff --git a/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..62e98151af0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.users.item.chats.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..1a536d69596 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/chats/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.users.item.chats.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 59382727c8d..87758f85638 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/InsightsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/InsightsRequestBuilder.java index c6980e1f248..9d0a54b8b09 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/InsightsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/InsightsRequestBuilder.java @@ -1,7 +1,7 @@ package com.microsoft.graph.users.item.insights; +import com.microsoft.graph.models.ItemInsights; import com.microsoft.graph.models.odataerrors.ODataError; -import com.microsoft.graph.models.OfficeGraphInsights; import com.microsoft.graph.users.item.insights.shared.SharedRequestBuilder; import com.microsoft.graph.users.item.insights.trending.TrendingRequestBuilder; import com.microsoft.graph.users.item.insights.used.UsedRequestBuilder; @@ -83,50 +83,50 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume } /** * Get insights from users - * @return a {@link OfficeGraphInsights} + * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public OfficeGraphInsights get() { + public ItemInsights get() { return get(null); } /** * Get insights from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link OfficeGraphInsights} + * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public OfficeGraphInsights get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + public ItemInsights get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, OfficeGraphInsights::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ItemInsights::createFromDiscriminatorValue); } /** * Update the navigation property insights in users * @param body The request body - * @return a {@link OfficeGraphInsights} + * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public OfficeGraphInsights patch(@jakarta.annotation.Nonnull final OfficeGraphInsights body) { + public ItemInsights patch(@jakarta.annotation.Nonnull final ItemInsights body) { return patch(body, null); } /** * Update the navigation property insights in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link OfficeGraphInsights} + * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code */ @jakarta.annotation.Nullable - public OfficeGraphInsights patch(@jakarta.annotation.Nonnull final OfficeGraphInsights body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + public ItemInsights patch(@jakarta.annotation.Nonnull final ItemInsights body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); final HashMap> errorMapping = new HashMap>(); errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, OfficeGraphInsights::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ItemInsights::createFromDiscriminatorValue); } /** * Delete navigation property insights for users @@ -174,7 +174,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final OfficeGraphInsights body) { + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemInsights body) { return toPatchRequestInformation(body, null); } /** @@ -184,7 +184,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final OfficeGraphInsights body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemInsights body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/SharedRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/SharedRequestBuilder.java index 2d85fc7c8eb..a7c916bcb30 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/SharedRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/SharedRequestBuilder.java @@ -60,7 +60,7 @@ public SharedRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/shared{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return a {@link SharedInsightCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public SharedInsightCollectionResponse get() { return get(null); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link SharedInsightCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public SharedInsight post(@jakarta.annotation.Nonnull final SharedInsight body, return this.requestAdapter.send(requestInfo, errorMapping, SharedInsight::createFromDiscriminatorValue); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public SharedRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new SharedRequestBuilder(rawUrl, requestAdapter); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/item/SharedInsightItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/item/SharedInsightItemRequestBuilder.java index 424230826b0..bb4227a5fdf 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/item/SharedInsightItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/shared/item/SharedInsightItemRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return a {@link SharedInsight} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public SharedInsight get() { return get(null); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link SharedInsight} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public SharedInsightItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/TrendingRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/TrendingRequestBuilder.java index 384836581c4..0bb3dfc430c 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/TrendingRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/TrendingRequestBuilder.java @@ -60,7 +60,7 @@ public TrendingRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/trending{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return a {@link TrendingCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public TrendingCollectionResponse get() { return get(null); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link TrendingCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public Trending post(@jakarta.annotation.Nonnull final Trending body, @jakarta.a return this.requestAdapter.send(requestInfo, errorMapping, Trending::createFromDiscriminatorValue); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public TrendingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r return new TrendingRequestBuilder(rawUrl, requestAdapter); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/item/TrendingItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/item/TrendingItemRequestBuilder.java index da3d2d6e72b..a289680e6e5 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/item/TrendingItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/trending/item/TrendingItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return a {@link Trending} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public Trending get() { return get(null); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Trending} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public TrendingItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/used/UsedRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/used/UsedRequestBuilder.java index de8a506d014..937659babdc 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/used/UsedRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/used/UsedRequestBuilder.java @@ -60,7 +60,7 @@ public UsedRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/used{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return a {@link UsedInsightCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public UsedInsightCollectionResponse get() { return get(null); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UsedInsightCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public UsedInsight post(@jakarta.annotation.Nonnull final UsedInsight body, @jak return this.requestAdapter.send(requestInfo, errorMapping, UsedInsight::createFromDiscriminatorValue); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public UsedRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new UsedRequestBuilder(rawUrl, requestAdapter); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/insights/used/item/UsedInsightItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/insights/used/item/UsedInsightItemRequestBuilder.java index 314ee526523..6255a495496 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/insights/used/item/UsedInsightItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/insights/used/item/UsedInsightItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return a {@link UsedInsight} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public UsedInsight get() { return get(null); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UsedInsight} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public UsedInsightItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/ChannelsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/ChannelsRequestBuilder.java index 617ebeec628..40a6da073b3 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/ChannelsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/ChannelsRequestBuilder.java @@ -5,6 +5,7 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.users.item.joinedteams.item.channels.count.CountRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.getallmessages.GetAllMessagesRequestBuilder; +import com.microsoft.graph.users.item.joinedteams.item.channels.getallretainedmessages.GetAllRetainedMessagesRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.ChannelItemRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -40,6 +41,14 @@ public CountRequestBuilder count() { public GetAllMessagesRequestBuilder getAllMessages() { return new GetAllMessagesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + * @return a {@link GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder getAllRetainedMessages() { + return new GetAllRetainedMessagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param channelId The unique identifier of channel diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java new file mode 100644 index 00000000000..9b36ec3abc9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.users.item.joinedteams.item.channels.getallretainedmessages; + +import com.microsoft.graph.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.models.ChatMessage; +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 GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllRetainedMessagesGetResponse} and sets the default values. + */ + public GetAllRetainedMessagesGetResponse() { + 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 GetAllRetainedMessagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllRetainedMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllRetainedMessagesGetResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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 value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java new file mode 100644 index 00000000000..2498ae6fe69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/getallretainedmessages/GetAllRetainedMessagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.users.item.joinedteams.item.channels.getallretainedmessages; + +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 getAllRetainedMessages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllRetainedMessagesRequestBuilder} 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 GetAllRetainedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllRetainedMessagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllRetainedMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllRetainedMessagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllRetainedMessages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllRetainedMessages + * @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 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 GetAllRetainedMessagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllRetainedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllRetainedMessagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllRetainedMessages + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/ChannelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/ChannelItemRequestBuilder.java index 012241a18b3..16c1b40b4e3 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/ChannelItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/ChannelItemRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.users.item.joinedteams.item.channels.item.archive.ArchiveRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.filesfolder.FilesFolderRequestBuilder; @@ -11,6 +12,7 @@ import com.microsoft.graph.users.item.joinedteams.item.channels.item.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.channels.item.tabs.TabsRequestBuilder; +import com.microsoft.graph.users.item.joinedteams.item.channels.item.unarchive.UnarchiveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link ChannelItemRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..6ba25437197 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.users.item.joinedteams.item.channels.item.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..d3c6914798c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.users.item.joinedteams.item.channels.item.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..ffed7064d73 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/channels/item/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.users.item.joinedteams.item.channels.item.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/PrimaryChannelRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/PrimaryChannelRequestBuilder.java index 5a0ea228bdb..5c601ebc466 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/PrimaryChannelRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/PrimaryChannelRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.models.Channel; import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.users.item.joinedteams.item.primarychannel.archive.ArchiveRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.primarychannel.completemigration.CompleteMigrationRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.primarychannel.doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.primarychannel.filesfolder.FilesFolderRequestBuilder; @@ -11,6 +12,7 @@ import com.microsoft.graph.users.item.joinedteams.item.primarychannel.removeemail.RemoveEmailRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.primarychannel.sharedwithteams.SharedWithTeamsRequestBuilder; import com.microsoft.graph.users.item.joinedteams.item.primarychannel.tabs.TabsRequestBuilder; +import com.microsoft.graph.users.item.joinedteams.item.primarychannel.unarchive.UnarchiveRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -29,6 +31,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + * @return a {@link ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder archive() { + return new ArchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the completeMigration method. * @return a {@link CompleteMigrationRequestBuilder} @@ -101,6 +111,14 @@ public SharedWithTeamsRequestBuilder sharedWithTeams() { public TabsRequestBuilder tabs() { return new TabsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the unarchive method. + * @return a {@link UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder unarchive() { + return new UnarchiveRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link PrimaryChannelRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchivePostRequestBody.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchivePostRequestBody.java new file mode 100644 index 00000000000..2b3f86c3299 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.users.item.joinedteams.item.primarychannel.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 ArchivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ArchivePostRequestBody} and sets the default values. + */ + public ArchivePostRequestBody() { + 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 ArchivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ArchivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ArchivePostRequestBody(); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map 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>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("shouldSetSpoSiteReadOnlyForMembers", (n) -> { this.setShouldSetSpoSiteReadOnlyForMembers(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getShouldSetSpoSiteReadOnlyForMembers() { + return this.backingStore.get("shouldSetSpoSiteReadOnlyForMembers"); + } + /** + * 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("shouldSetSpoSiteReadOnlyForMembers", this.getShouldSetSpoSiteReadOnlyForMembers()); + 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 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 shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public void setShouldSetSpoSiteReadOnlyForMembers(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("shouldSetSpoSiteReadOnlyForMembers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchiveRequestBuilder.java new file mode 100644 index 00000000000..6a61d782676 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/archive/ArchiveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.users.item.joinedteams.item.primarychannel.archive; + +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.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 archive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ArchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/archive", pathParameters); + } + /** + * Instantiates a new {@link ArchiveRequestBuilder} 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 ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/archive", rawUrl); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + post(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel cant be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ArchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ArchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ArchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java new file mode 100644 index 00000000000..e4fe2d7ae76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/joinedteams/item/primarychannel/unarchive/UnarchiveRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.users.item.joinedteams.item.primarychannel.unarchive; + +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.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 unarchive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link UnarchiveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/unarchive", pathParameters); + } + /** + * Instantiates a new {@link UnarchiveRequestBuilder} 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 UnarchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/unarchive", rawUrl); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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 Find more info here + */ + public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + 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 UnarchiveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public UnarchiveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new UnarchiveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/SettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/SettingsRequestBuilder.java index 80d80752a09..2c210b35a98 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/settings/SettingsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/SettingsRequestBuilder.java @@ -2,7 +2,9 @@ import com.microsoft.graph.models.odataerrors.ODataError; import com.microsoft.graph.models.UserSettings; +import com.microsoft.graph.users.item.settings.iteminsights.ItemInsightsRequestBuilder; import com.microsoft.graph.users.item.settings.shiftpreferences.ShiftPreferencesRequestBuilder; +import com.microsoft.graph.users.item.settings.storage.StorageRequestBuilder; import com.microsoft.graph.users.item.settings.windows.WindowsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -22,6 +24,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class SettingsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. + * @return a {@link ItemInsightsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ItemInsightsRequestBuilder itemInsights() { + return new ItemInsightsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the shiftPreferences property of the microsoft.graph.userSettings entity. * @return a {@link ShiftPreferencesRequestBuilder} @@ -30,6 +40,14 @@ public class SettingsRequestBuilder extends BaseRequestBuilder { public ShiftPreferencesRequestBuilder shiftPreferences() { return new ShiftPreferencesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the storage property of the microsoft.graph.userSettings entity. + * @return a {@link StorageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public StorageRequestBuilder storage() { + return new StorageRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the windows property of the microsoft.graph.userSettings entity. * @return a {@link WindowsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/iteminsights/ItemInsightsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/iteminsights/ItemInsightsRequestBuilder.java new file mode 100644 index 00000000000..1fbaa9442fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/iteminsights/ItemInsightsRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.users.item.settings.iteminsights; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.UserInsightsSettings; +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 manage the itemInsights property of the microsoft.graph.userSettings entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ItemInsightsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ItemInsightsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ItemInsightsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ItemInsightsRequestBuilder} 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 ItemInsightsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property itemInsights for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property itemInsights for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get itemInsights from users + * @return a {@link UserInsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserInsightsSettings get() { + return get(null); + } + /** + * Get itemInsights from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserInsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserInsightsSettings get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserInsightsSettings::createFromDiscriminatorValue); + } + /** + * Update the navigation property itemInsights in users + * @param body The request body + * @return a {@link UserInsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserInsightsSettings patch(@jakarta.annotation.Nonnull final UserInsightsSettings body) { + return patch(body, null); + } + /** + * Update the navigation property itemInsights in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserInsightsSettings} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserInsightsSettings patch(@jakarta.annotation.Nonnull final UserInsightsSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserInsightsSettings::createFromDiscriminatorValue); + } + /** + * Delete navigation property itemInsights for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property itemInsights for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get itemInsights from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get itemInsights from users + * @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 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; + } + /** + * Update the navigation property itemInsights in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserInsightsSettings body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property itemInsights in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserInsightsSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ItemInsightsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ItemInsightsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ItemInsightsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get itemInsights from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/StorageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/StorageRequestBuilder.java new file mode 100644 index 00000000000..27b832c2003 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/StorageRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.users.item.settings.storage; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.UserStorage; +import com.microsoft.graph.users.item.settings.storage.quota.QuotaRequestBuilder; +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 manage the storage property of the microsoft.graph.userSettings entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class StorageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the quota property of the microsoft.graph.userStorage entity. + * @return a {@link QuotaRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuotaRequestBuilder quota() { + return new QuotaRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link StorageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public StorageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link StorageRequestBuilder} 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 StorageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property storage for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property storage for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get storage from users + * @return a {@link UserStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserStorage get() { + return get(null); + } + /** + * Get storage from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserStorage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserStorage::createFromDiscriminatorValue); + } + /** + * Update the navigation property storage in users + * @param body The request body + * @return a {@link UserStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserStorage patch(@jakarta.annotation.Nonnull final UserStorage body) { + return patch(body, null); + } + /** + * Update the navigation property storage in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserStorage patch(@jakarta.annotation.Nonnull final UserStorage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserStorage::createFromDiscriminatorValue); + } + /** + * Delete navigation property storage for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property storage for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get storage from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get storage from users + * @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 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; + } + /** + * Update the navigation property storage in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserStorage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property storage in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserStorage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 StorageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public StorageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new StorageRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get storage from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/QuotaRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/QuotaRequestBuilder.java new file mode 100644 index 00000000000..edc41cef804 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/QuotaRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.users.item.settings.storage.quota; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.UnifiedStorageQuota; +import com.microsoft.graph.users.item.settings.storage.quota.services.ServicesRequestBuilder; +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 manage the quota property of the microsoft.graph.userStorage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QuotaRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @return a {@link ServicesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServicesRequestBuilder services() { + return new ServicesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link QuotaRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QuotaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link QuotaRequestBuilder} 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 QuotaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property quota for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property quota for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get quota from users + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota get() { + return get(null); + } + /** + * Get quota from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UnifiedStorageQuota::createFromDiscriminatorValue); + } + /** + * Update the navigation property quota in users + * @param body The request body + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota patch(@jakarta.annotation.Nonnull final UnifiedStorageQuota body) { + return patch(body, null); + } + /** + * Update the navigation property quota in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UnifiedStorageQuota} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UnifiedStorageQuota patch(@jakarta.annotation.Nonnull final UnifiedStorageQuota body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UnifiedStorageQuota::createFromDiscriminatorValue); + } + /** + * Delete navigation property quota for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property quota for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get quota from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get quota from users + * @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 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; + } + /** + * Update the navigation property quota in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UnifiedStorageQuota body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property quota in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UnifiedStorageQuota body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 QuotaRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuotaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QuotaRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get quota from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/ServicesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/ServicesRequestBuilder.java new file mode 100644 index 00000000000..9f279263c0a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/ServicesRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.users.item.settings.storage.quota.services; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdown; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdownCollectionResponse; +import com.microsoft.graph.users.item.settings.storage.quota.services.count.CountRequestBuilder; +import com.microsoft.graph.users.item.settings.storage.quota.services.item.ServiceStorageQuotaBreakdownItemRequestBuilder; +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 manage the services property of the microsoft.graph.unifiedStorageQuota entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServicesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @param serviceStorageQuotaBreakdownId The unique identifier of serviceStorageQuotaBreakdown + * @return a {@link ServiceStorageQuotaBreakdownItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceStorageQuotaBreakdownItemRequestBuilder byServiceStorageQuotaBreakdownId(@jakarta.annotation.Nonnull final String serviceStorageQuotaBreakdownId) { + Objects.requireNonNull(serviceStorageQuotaBreakdownId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("serviceStorageQuotaBreakdown%2Did", serviceStorageQuotaBreakdownId); + return new ServiceStorageQuotaBreakdownItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ServicesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServicesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ServicesRequestBuilder} 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 ServicesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get services from users + * @return a {@link ServiceStorageQuotaBreakdownCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdownCollectionResponse get() { + return get(null); + } + /** + * Get services from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdownCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdownCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdownCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to services for users + * @param body The request body + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown post(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return post(body, null); + } + /** + * Create new navigation property to services for users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown post(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Get services from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get services from users + * @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 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; + } + /** + * Create new navigation property to services for users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to services for users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ServicesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServicesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServicesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get services from users + */ + @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} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/count/CountRequestBuilder.java new file mode 100644 index 00000000000..2638ba85144 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.users.item.settings.storage.quota.services.count; + +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 count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} 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 CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @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 requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + 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 CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + 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(); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java new file mode 100644 index 00000000000..c5425efa1c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/users/item/settings/storage/quota/services/item/ServiceStorageQuotaBreakdownItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.users.item.settings.storage.quota.services.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ServiceStorageQuotaBreakdown; +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 manage the services property of the microsoft.graph.unifiedStorageQuota entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ServiceStorageQuotaBreakdownItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ServiceStorageQuotaBreakdownItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ServiceStorageQuotaBreakdownItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ServiceStorageQuotaBreakdownItemRequestBuilder} 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 ServiceStorageQuotaBreakdownItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property services for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property services for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get services from users + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown get() { + return get(null); + } + /** + * Get services from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Update the navigation property services in users + * @param body The request body + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown patch(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return patch(body, null); + } + /** + * Update the navigation property services in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ServiceStorageQuotaBreakdown} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ServiceStorageQuotaBreakdown patch(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ServiceStorageQuotaBreakdown::createFromDiscriminatorValue); + } + /** + * Delete navigation property services for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property services for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get services from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get services from users + * @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 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; + } + /** + * Update the navigation property services in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property services in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ServiceStorageQuotaBreakdown body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + 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 ServiceStorageQuotaBreakdownItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ServiceStorageQuotaBreakdownItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Get services from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + 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(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +}